1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HostGator not working with PHP files

Discussion in 'Web Hosting' started by Noktop, Feb 11, 2014.

  1. Noktop

    Noktop Newbie

    Joined:
    Nov 25, 2013
    Messages:
    45
    Likes Received:
    18
    I'm working on a WordPress installation hosted by HostGator. I have added new code to a php file which is used for the home page gallery slider. The changes work on my local installation but do not appear on the live site. I have even attempted to insert gibberish code into the file to see if it would update, It did not. This leads me to believe it's being cached somewhere and not updating.



    • I have disabled all suspected caching plugins.
    • Added define('DISABLE_CACHE', true); to wp-config.php
    • Cleared all browser caches, and CTR + F5, As far as I can tell, I've cleared the caches properly. Multiple times.
    • Verified the code is sound
    • Waited overnight to see if it would update eventually
     
  2. TimothyEyton

    TimothyEyton Junior Member

    Joined:
    Dec 30, 2013
    Messages:
    127
    Likes Received:
    62
    From my experience, this type of issue is usually a user error where the wrong file is being edited. If you wanted to send me a PM with your domain name and the file name / folder you are working with, I can try to have a look.
     
    Last edited: Feb 11, 2014
  3. Noktop

    Noktop Newbie

    Joined:
    Nov 25, 2013
    Messages:
    45
    Likes Received:
    18
    If it were the wrong file, that would make sense. I don't understand why it would work on the my local installation and not the live site though.

    I sent you a PM Timothy, thanks for the assistance.
     
  4. kvchosting

    kvchosting Jr. VIP Jr. VIP

    Joined:
    Aug 23, 2012
    Messages:
    298
    Likes Received:
    75
    Location:
    Oklahoma
    Home Page:
    Is PHP version on local and hostgator server same?
     
  5. SilentOp

    SilentOp Newbie

    Joined:
    Jan 29, 2014
    Messages:
    5
    Likes Received:
    0
    It could be a result of version conflict in php or some php feature enabled / disabled on the host in contrast to local host.
     
  6. mazgalici

    mazgalici Supreme Member

    Joined:
    Jan 2, 2009
    Messages:
    1,489
    Likes Received:
    881
    Home Page:
    check the error log from your cPanel
     
  7. Noktop

    Noktop Newbie

    Joined:
    Nov 25, 2013
    Messages:
    45
    Likes Received:
    18
    I was under the impression they were both up to date. I'm working with Instnatn wordpress 4.3.1. I can't find in the documentation where it says what PHP version it uses. HostGator uses PHP 5.2.17 and phpMyAdmin 3.5.5.

    Is there an easy way I can cross reference which features are being called on both?

    No errors to view sadly.


    Thanks for the help guys, I'm trying to figure out any possible php version discrepancies atm...
     
  8. Noktop

    Noktop Newbie

    Joined:
    Nov 25, 2013
    Messages:
    45
    Likes Received:
    18
    Polite bump.

    I'm still having the same problem. :(
     
  9. CoolAdvisor

    CoolAdvisor Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 24, 2008
    Messages:
    977
    Likes Received:
    360
    I got similar issues some time ago, was editing wrong files, try to find the real files of your wp theme