Help - image galleries not loading after moving site

Permalink Browser Info Environment
hi Guys,

Pulling my hair up over this one! Since I migrated my C5 site from one host to another, my Simple Image Gallery and Sortable Fancybox Gallery blocks have stopped loading. No Javascript errors in Firebug to go on either.

The file system is exactly the same on both hosts and the db is exactly the same too.

Working page (scroll to bottom of right column):

http://sharktours.tlloyd.com/lutwala-indonesia/gili-trawangan-indon...

Broken page (stops processing after gallery block, nothing else loaded):

http://www.sharktours.co.za/lutwala-indonesia/gili-trawangan-indone...

If I remove the block from the template, then the rest of the page loads as it should. I don't want to have to rebuild all my pages.

Pleaaaaaaaaaase can anyone suggest why this is happening ?!

Thanks,

Tim

Type: Discussion
Status: New
tlloyduk
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
Hi Tim,
I see what you mean about how the page stops rendering at the gallery block in the sidebar. I honestly don't know what could be causing this problem (but it's certainly an issue on the server side / with the php code, not a javascript issue). It looks like everything else is the same on both pages. I wonder if there's an error you can see in your server's PHP log (or you could also try looking at Concrete5's error log in the Dashboard)?
If you can't locate the logs, you might want to try temporarily turning on error displays on your site, via Dashboard -> System & Settings -> Environment -> Debug Settings (or type "debug settings" into the Intelligent Search box), then go back to the page and see if an error is outputted there.

If you can figure out what the error is, post it back here and that might give me a better idea as to what the problem is.

-Jordan
tlloyduk replied on at Permalink Reply
tlloyduk
Hi Jordan,

I have enabled logging and debugging in the C5 dashboard but not seeing anything displayed when I access the page.

So to confirm, System & Settings -> Logging Settings -> Log Application Exceptions and Log Emails Sent are ticked. Debug Level is set to "Show errors in page". If I go to Reports -> Logs it says "There are no log entries to show at the moment.".

I've had a root around the web host but there doesn't appear to be a PHP log. Are there any hidden log file areas I should look in on the server?

I've tried adding:

error_reporting(E_ALL); 
ini_set( 'display_errors','1');


To index.php/dispatcher.php in the hope it may throw up a PHP error in the browser, but no joy.

Tim
tlloyduk replied on at Permalink Reply
tlloyduk
Okay if I put that PHP code into the Simple Image Gallery controller.php I do get a load of NOTICE errors:


Notice: Undefined property: Area::$arIsGlobal in /usr/www/users/sharktou/concrete/models/area.php on line 368

Notice: Undefined variable: includeEditStrip in /usr/www/users/sharktou/concrete/models/area.php on line 432

Notice: Undefined property: BlockView::$hasRendered in /usr/www/users/sharktou/concrete/libraries/block_view.php on line 169

Notice: Undefined variable: path in /usr/www/users/sharktou/concrete/libraries/loader.php on line 407


Notice: Undefined property: Block::$bActionCID in /usr/www/users/sharktou/concrete/models/block.php on line 738

Notice: Undefined property: FileList::$queryCreated in /usr/www/users/sharktou/concrete/models/file_list.php on line 282

Notice: Undefined index: ccm_order_by in /usr/www/users/sharktou/concrete/libraries/item_list.php on line 49

Notice: Undefined property: File::$fsDisplayOrder in /usr/www/users/sharktou/packages/simple_image_gallery/models/simple_image_gallery.php on line 26

There are no ERROR or PARSE messages...but this may give a clue ?

Tim
jordanlev replied on at Permalink Reply
jordanlev
Hmm... I don't think those would cause any problems (as you say, they're just notices, and most of them caused by the Concrete5 system itself).

I noticed in the "environment info" you pasted into the other support request thread that you have some kind of overrides in your blocks directory for this. Are you using a custom template for this gallery? Or did you perhaps install the gallery manually into the blocks directory (as opposed to the packages directory where it belongs)?
tlloyduk replied on at Permalink Reply
tlloyduk
Yes I do have a custom template to change the design of the gallery slightly, do you think this has something to do with it ?
tlloyduk replied on at Permalink Reply
tlloyduk
Out of interest I removed the override completely by moving the directory out of 'blocks' but it still does the same
jordanlev replied on at Permalink Reply
jordanlev
Sorry man, I have no idea what could be the problem. The only way I could find out at this point would be to log into your server and see if I see anything weird going on there. If you're cool with that, send the FTP info to me directly at concrete@jordanlev.com
(but if you'd rather not, I totally understand -- but unfortunately there's nothing else I can think of to diagnose this problem right now).

-Jordan
tlloyduk replied on at Permalink Reply
tlloyduk
I appreciate the offer as I'm really stuck, so I'll take you up on it and email you in a few mins.

Thanks
tlloyduk replied on at Permalink Reply
tlloyduk
For anyone else that's interested, this turned out to be an image dimension issue.

Any images over about 3000px width caused the block not to load. As it worked fine on the dev server, I can only assume there's something in the php.ini that limits a buffer (or something) on the live server. Removing/resizing the images fixed it.

Thanks all for your help and especially Jordan for taking a look and pointing me in the right direction.
gd42 replied on at Permalink Reply
gd42
Just in case others also encounter this problem:

You need to increase the PHP memory limit.

Probably the easiest way to do it is to simply add the following to your .htaccess file:

php_value memory_limit 64M

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.