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 appreciated
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.
Thanks for the reply.
OK, so does that mean I have to go and redo all they options again??
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.
No – I’m not aware of problem with PHP5.1+ – just older versions don’t work at all.
You can only try to import the options again. I don’t know an alternative solution :(
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 nightmare
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.
The topic ‘error when deployed to remote host’ is closed to new replies.