Support » Themes and Templates » Theme works well locally but fails when deploy on bluehost server

  • I developed a theme and it works well on my local machine, running on MAMP on Mac OS 10.6. The wordpress version is 3.4.2.
    I then tested it again by install 3.4.2 wordpess again, copy the my_theme_folder into wp-content/themes and install the theme again. It works perfectly fine.
    However, when I copied the my_theme_folder to bluehost server and try to install it there, theme does not work at all. css does not work at all. Note that I also have 3.4.2 wordpress installed on the server.

    I wonder if there’s anything different between working on local host and deploying on server? why my theme does not work on bluehost server? What’s the correct procedure to move theme from local machine to remote server? Is there any log file that I can look at to see what was wrong?


Viewing 7 replies - 1 through 7 (of 7 total)
  • Are you developing with WP_DEBUG turned on? I’d suggest running the theme through the full battery of Theme Reviewer tests and plugins to see if there is an error in the development.

    I develop locally on a Mac all day and automatically deploy to many different servers with out any trouble. I test against the Theme Review guidelines all the time.

    Emil Uzelac


    Theme Review Admin

    Sure, please check moving WordPress page, it’s quite possible that something still references to localhost instead 🙂


    thanks, curtismachale. I didn’t know of that option before. However, I’ve just turned it on together with WP_DEBUG_LOG on my local machine but don’t see any error message nor was any error.log generated in wp-content. Do I have to restart apache or something? I guess not, right?

    Emil, I don’t move posts or anything else except the theme.

    Curtismchale, when I turn on debug on the server, I got this notice:
    Notice: Undefined index: path in /public_html/wp-content/themes/mytheme/warp/systems/wordpress.3.0/helpers/system.php on line 57

    which is this code:

    $urlinfo = parse_url(get_option('siteurl'));
    $url     = $urlinfo['path'];

    I can tell you that the error means that the ‘line 57’ is trying to use the word ‘path’ but it does not know what ‘path’ means. Find where you defined ‘path’ and make sure that is able to be seen or accessed by the system.php file that needs it.

    Since your theme is not working at Bluehost, you need to check to see if any settings in .htaccess (httpd.conf) or php.ini need to be set or changed to match how it works on your MAMP.

    Thanks, BH_WP_Guru. I just wonder if there’s anyway I can print out the ‘path’ to a log file or something? I tried error_log($url) but it certainly does not work. I also tried error_log($path) but couldn’t find it being written anywhere.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Theme works well locally but fails when deploy on bluehost server’ is closed to new replies.