After move to new server, many theme options are not populating.

Discussion in 'BlackBird WordPress Theme' started by adeline66, Jan 30, 2013.

  1. adeline66

    adeline66 New Member

    Joined:
    Dec 6, 2012
    Messages:
    2
    Likes Received:
    0
    Hi, folks

    I moved my site to a new server. And it's basically working; wordpress content is in place, site navigation works, etc. But the Blackbird theme is not working.

    The theme options that are populated out of the database are populating incorrectly: every one is populated with a single lowercase 'o'. So , for instance, the theme is trying to load a stylesheet named 'o.css'; every block of text that's supposed to appear on the homepage is just an '0'; and every image has a tag that says <IMG SRC="0">. The javascript that the theme inserts into the homepage looks like this:
    <script type="javascript">
    o
    </script>​
    It seems like the system may not be correctly parsing the JSON object that comes out of the inkthemes_options field in the database; the overall name of that object is '0', so that might explain why there are o's everywhere.

    But, basically, I'm stumped. Does anyone have experience with this issue? Here's the homepage, so you can see it for yourself: http://cwchollywood.org/wordpress/
     
  2. adeline66

    adeline66 New Member

    Joined:
    Dec 6, 2012
    Messages:
    2
    Likes Received:
    0
    OK, some further info: I confirmed, by directly accessing the get_options() function, that the inkthemes options are not being returned as arrays, they're being returned as a string. So when Wordpress attempts to treat that string as an array, it returns the first letter of the string, which is 'o'.

    I think the data in the inkthemes fields was truncated when I exported the database, leading to malformed JSON that the get_options() function can't parse. Strange, though, that no other fields in the database were similarly truncated. Are inkthemes_options and blackbird_options much larger than anything else Wordpress runs up against?
     

Share This Page