Our offices will be closed Monday December 24th and Tuesdsay December 25th in observance of the Christmas Holiday. We will reopen Wednesday December 26th @ 10am. All support requests and emails received after close of business on Friday December 21st will be responded to when we return on Wednesday the 26th in the order they were received. We apologize if this causes any inconvenience.
I've created a new gallery and uploaded some images, then set a featured image. It appears correctly in a profile page, however when I view the gallery itself it takes about a minute for the page to appear empty with just the left and right controls visible.
The page can be seen here - http://www.andyogden.co.uk/gallery/test-gallery/
Is this a known problem?
It appears that your server is not allowing the page to calculate the size of the images, that page uses a built in PHP function called getimagesize() to calculate the size of an image and then populate that onto the page. What’s most likely happening is that your server has a lot threshold set for memory usage of a single script, so for each image it’s hitting the memory limit, hanging, and then going to the next and trying. We’ll see if we can find a solution that will try to prevent this.
The easiest way to increase the memory limit is the create a file called php.ini and put the line ‘memory_limit = 32M;’ (without the quotation) and then FTP it to your root directory of your site. This will automatically direct PHP to use a higher memory limit. We have a workaround for the images not displaying when this fails but it won’t solve the problem of the load time since that’s the actual server not responding.
Yes, it seems your server is not allowing the function to run, it might be a case that they are not allowing it with explicit http:// because it technically could be on another site.. I would check with your support to see if they can enable it.. you could also check if they will turn on ‘allow_url_fopen’
Thank you for the update. This is Tim Miller, Customer Support Representative here at RAWFolio.com.
Our developer is currently out of the office today and tomorrow and will look further into this issue for you Monday.
We will be in touch as soon as possible.
RAWFolio Customer Support
We’ve pushed an update (1.0.9) that should remedy this issue, let us know if you run into any other problems.
The post.php file is a native WordPress file, the Flux theme doesn’t make any modifications or alter the file in any way. The time-out message means that something is ‘hanging’ on your server while processing/saving the post. Are there any more details included in the log file that may be of assistance?
Yes the galleries are custom post types, but under the hood custom post types are just a sub classification of WordPress’ ‘Post’ objects just like pages, images and attachments are, and all of them are essentially run by the post.php file.
Are you using version 22.214.171.124 or 126.96.36.199? In 9.2 we put in some rules that defers some of the image processing until it’s actually needed but none of the logic for the galleries tie into post.php other than to set a flag that the gallery has been saved/updated. Is there any other error showing besides the 504 error? Perhaps a line number where we can trace what is being executed when it’s timing out?
This question has received the maximum number of answers.