WordPress.org

Ready to get started?Download WordPress

Forums

Theme works well locally but fails when deploy on bluehost server (8 posts)

  1. chepukha
    Member
    Posted 1 year ago #

    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?

    Thanks,

  2. curtismchale
    Member
    Posted 1 year ago #

    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.

    http://codex.wordpress.org/Theme_Review

    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.

  3. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    Sure, please check moving WordPress page, it's quite possible that something still references to localhost instead example.com :)

    Emil

  4. chepukha
    Member
    Posted 1 year ago #

    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?

  5. chepukha
    Member
    Posted 1 year ago #

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

  6. chepukha
    Member
    Posted 1 year ago #

    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'];
  7. BH_WP_Guru
    Member
    Posted 1 year ago #

    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.

  8. chepukha
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic