Magento, Product page load without main product image, but server return error 500 - magento-1.9

My product pages are loading fine, but almost 2 or 3 products load photos without the main product image, the rest of the page load fine but using debug tools the browser report error 500

Related

Route Query Lost After Page Refresh [nextjs]

I'm using a route query to pass a product ID through to my product page, allowing me to pull all of the related info in getInitialProps.
This works well until the page is refreshed, when the page is refreshed the query id is lost and the product info can no longer be pulled.
Is there a way to persist the query after refresh?
Thanks

SSRS Rending Images From An External Web Server

We have a public website full of products. Each product has an image. The URL for the image is the product code so each image the URL is more or less https//images.company.com/1111/2222/111122223333.jpg. (where 111122223333 is the product code).
My database knows the product codes and I want to incorporate the product images into a report, pulled from the public website (which is hosted on a completely separate server).
On my SQL server, I can view the product images in the web browser without problem, however when I use the same URL as an image value in SSRS, I just get a red X and no image. I've tried storing the URL in a table and referencing the table to display the image but this just give me a blank image.
Is anyone able to advise whether what I'm trying to do is even possible and if so, where I might be going wrong? Using SQL Server 2014, SSRS 2012.

Does it take longer time to load web page with failed images

I have a webpage that will shows table of 1500 records with image in each record. I've saved the image name as [row_id].png.
So i can easily assign the image src as [row_id]
I have used onerror='imgError(this);' for assigning default image if real image is not available. Although, around 1400 errors are shown in firebug ( Failed to load resource: the server responded with a status of 404 (Not Found))
However, my concern here is whether it takes longer time if I specify image src which does not exist?
One of the most time consuming things you can do on the WWW is to make an HTTP request.
You are trying to load 1400 different images which don't exist. Each one of those requires an HTTP request.
Changing your logic so you don't try to include an image at all will be significantly faster.

Have i done something to make picasa embedded gallery slow or is it just slow?

This is my first website I'm sorry if I've done something incorrectly. All help very much appreciated.
The problem.
I am currently using picasa's web album. ( I use this so my client should easily be able to update the pictures being show). When I load the page It does take a second or two for the album to show up. Yet on other computers it just does not show up at all.
The question
Why does the embedded gallery app show up for me but not for others?
Also Is there a better alternative.
My website Gallery
When you open the JavaScript console you're greeted with:
Failed to load resource: the server responded with a status of 404 (Not Found) https://picasaweb.google.com/data/feed/api/user/114335947299595812751/albumid/5880485482955492337?kind=photo&alt=rss
This means that the feed you're trying to load can't be found (or can no longer be found, at any rate).
To resolve this you'll need to point your embed code (on line 23 of your gallary.html file) a working address.
I imagine it loads for you because your page is cached. Try ctrl+F5 to do a hard refresh; failing that, clear your browser's cache and refresh.

Need to have many different URLS resolve to a single web page

And I don't want to use GET params.
Here are the details:
the user has a bunch of photos, and each photo must be shown by itself and have a unuique URL of the form
www.mysite.com/theuser/photoNumber-N
I create a unique URL for a user each time they add a new photo to their gallery
the web page that displays the user's photo is the same code for every user and every photo -- only the photo itself is different.
the user gives a URL to Person-A but then Person-A has one URL to that one photo and cannot see the user's other photos (because each photo has a unique URL and Person-A was given only one URL for one photo)
I want the following URLS to (somehow) end up loading only one web page with only the photo contents being different:
www.mysite/user-Terry/terryPhoto1
www.mysite/user-Terry/terryPhoto2
www.mysite/user-Jackie/JackiesWeddingPhoto
www.mysite/user-Jackie/JackiesDogPhoto
What I'm trying to avoid is this: having many copies of the same web page on my server, with the only difference being the .jpeg filename.
If I have 200 user and each has 10 photos -- and I fulfill my requirement that each photo is on a page by itself with a distinct URL -- right now I've got 2000 web pages, each displaying a unique photo, taking space on my web server and every page is identical and redundant disk-space-wasting HTML code, the only difference being the .JPEG file name of the photo to display.
Is there something I can do to avoid wasting diskspace and still meet my requirement that each photo has a unique URL?
Again I cannot use GET with parameters.
If you are on an Apache server, you can use Apache's mod_rewrite to accomplish just that. While the script you are writing will ultimately still be fetching GET variables (www.mysite.com/photos.php?id=photo-id), mod_rewrite will convert all the URL's served in the format you choose (www.mysite.com/user-name/photo-id).
Some ways you can implement it can be found here and here, while the actual documentation on the Apache module itself can be found here.
Go to IIS Manager. Go to the site hosted in IIS. Add additional binding for each url.
This will redirect all request the same location.