If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
July 1, 2011 at 3:38 pm #4856
Hi, having an issue deploying this on production server.
It’s fine on local machine but when i move it over I get the following error printed on page and the styling is all off.
Copy files to remote server
Export Database from PHPMyAdmin
Import into remote DB
Warning: extract() expects parameter 1 to be array, null given in /home/c555194/public_html/wp-content/themes/velvet/includes/helper-templates.php on line 369
Any help appreciatedJuly 1, 2011 at 3:40 pm #47796July 3, 2011 at 9:12 am #47797
maybe try to reset the velvet theme options (delete the option table in the db if you can’t access the theme panel). The error indicates that an array is corrupt and that the template builder data isn’t valid.July 4, 2011 at 11:22 am #47798
Thanks for the reply.
OK, so does that mean I have to go and redo all they options again??July 4, 2011 at 11:37 am #47799
btw, a reset in admin options got rid of the error, so you are probably right.
So it seems something’s getting corrupted between the export of the working site and the import to the new site? I’ll try re-exporting/importing the wp_options table again (presume settings are all in there?)
Someone somewhere else mentioned a version of PHP might be the issue? Version on the server is PHP Version 5.3.6.July 4, 2011 at 1:09 pm #47800July 4, 2011 at 1:44 pm #47801July 5, 2011 at 6:08 pm #47802July 6, 2011 at 6:40 pm #47803
ok, I did, a few times :-) I have also tried it on a different remote server, same issue. Something’s getting reset when a moved wp_options table is used. Hrm. This is a nightmareJuly 7, 2011 at 3:02 am #47804
Are you absolutely positive you changed all the url’s stored in the wp_options tables? Many are hidden in the saved “text” and you might have an option still linked to your localhost. Happened to me earlier during some testing. If it’s not that it seems we’ve run to a dead end.July 11, 2011 at 3:41 pm #47805
The topic ‘error when deployed to remote host’ is closed to new replies.