• GoDaddy Community
  • Managed WordPress Hosting
  • Managed WordPress Hosting

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution
    Getting Started

    Website images work only in debug mode

    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 - 

    with_debug.jpg

    Without debug mode- 

    withoutDebug.PNG

     

    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. 

    1 ACCEPTED SOLUTION

    @Chano 

     

    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.

     

     

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    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

    View solution in original post

    5 REPLIES 5
    Super User IV

    @Chano 

     

    What is the URL of your site and have you checked an inspect element to see if you have any 404 errors in console

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    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

    Getting Started

    @PL281 

     

    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?

    @Chano 

     

    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

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    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

    Getting Started

    @PL281 

     

    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

    @Chano 

     

    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.

     

     

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    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

    View solution in original post