Website looks great when the Wordpress debug mode is on, but as soon as I turn it off, images don't work, some buttons text go away.
With debug mode -
Without debug mode-
The errors that show up on the top are --
Deprecated: Function create_function() is deprecated in /var/www/wp-content/themes/palazzo/functions.php on line 542
Notice: Undefined offset: 1 in /var/www/wp-content/plugins/gb-api-wp/includes/admin_menu.php on line 135
Warning: Use of undefined constant CTF_VERSION - assumed 'CTF_VERSION' (this will throw an Error in a future version of PHP) in /var/www/wp-content/plugins/ai-twitter-feeds/ai-twitter-feeds.php on line 519
I have tried disabling gb-api plugin and ai twitter feeds plugin but it doesnt change anything.
Solved! Go to Solution.
Ok I found the issue - You have something on your site (perhaps in the theme) trying to use TimThumb which is an image resize - Which based on what I've read you should NEVER use TimThumb.
The issue is that that resizer is a PHP script and in the image source - so it is trying to load off the CDN and the CDN is for images / JS and CSS so therefore it isn't loading
For the time being you can shut off the CDN and it should work.
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
What is the URL of your site and have you checked an inspect element to see if you have any 404 errors in console
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
This is the url--
http://97m.57f.myftpupload.com/
I just checked the console and yes I do have a 404 error. It says 'Problem accessing /scriptloader/v1/.js'
How would you suggest I remove the 404 error?
I see you turned Debug Mode back on.... a couple of thing
1) You have a plugin called exec-php What is this for????
2) There is something in your theme functions.php line 542 what is this being used for??
More than likely it's the functions.php causing the issue
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
Yes I turned it off now if youd like to check it out again and look for any differences.
1) The company I am transferring the site from built the site as well so I am not sure what the exec php plugin is called. Maybe for sending the forms? I have read online that this plugin is bad practice so I may have to re implement that.
2) I commented out the function on 542 and the site seems to behave the same way. Same image glitch and everything.
Let me know if you have any other suggestions.
Thanks
Ok I found the issue - You have something on your site (perhaps in the theme) trying to use TimThumb which is an image resize - Which based on what I've read you should NEVER use TimThumb.
The issue is that that resizer is a PHP script and in the image source - so it is trying to load off the CDN and the CDN is for images / JS and CSS so therefore it isn't loading
For the time being you can shut off the CDN and it should work.
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community