Moving a Concrete5 site
PermalinkI am a newbie trying to manage my first web site.
Before deciding if Concrete5 would suit my needs, I hesitate quite a bit and that is why I created 2 sub-directory at the root of my site: /htdocs/Concrete5 and /htdocs/siteB
Now that I have definitely choosen Concrete5, I deleted /htdocs/siteB sub-directory. I than copied the content of the /htdocs/Conctete5 one level up (/htdocs) following the instructions of this post. I of course created a new database by an import and changed the database.php file but I have the following error message when I try to open the site:
Argument 1 passed to Concrete\Core\StyleCustomizer\Style\ValueList::addValue() must be an instance of Concrete\Core\StyleCustomizer\Style\Value\Value, boolean given, called in /srv/data/web/vhosts/cb8fc90d46.testurl.ws/htdocs/concrete/src/StyleCustomizer/Style/ValueList.php on line 76 and defined
Could anyone help me find out what I did wrong?
Thanks in advance,
Pascal

Try changing back (hopefully you still have the original database because your errors might indicate the export/import wasn't done right) and starting over. Turn off pretty URLS before you move it, and after it's moved re-enable .
The post I was referring to is rather a topic of the concrete5 documentation (http://documentation.concrete5.org/developers/installation/moving-a-site).
I will have a try.
Thanks again,
Pascal
So, after having verified that the pretty URL's were off, I moved the entire structure one level up but the site shows a blank page. I put it back at the initial place and it worked again.
I deleted the application/config/cache directory and tried again with the same result.
I then exported the database again, renamed it (...-old) and import in a new one (with the initial name) after making changes in the import.sql file cause I noticed that the "/neuropsy-bxl" (that's the real name of the subdirectory) was referred to. I then replaced those occurrences by "" and imported the database. But problem was still there.
I then delete the database and renamed my ...-old database but now, it doesn't work anymore at the initial place.
I have now this message:
The cache directory must be published under the webroot (or you can set the concrete.cache.directory_relative configuration option)
Any idea of what I did wrong or how I can fix it?
Pascal
Preferably with the original database, if you've cleared the cache and turned off pretty urls before moving, after you move it, try navigating directly back to turn on pretty urls by typing the url in your browser address bar
yourdomain.com/index.php/dashboard/system/seo/urls
There, simply re-select the checkbox for "Remove index.php from URLs" and hit save.
Then try viewing the site again.
If you by some chance still get a blank page, try right-clicking and select "View Page Source" and look for any error type messages.
I still have the message:
The cache directory must be published under the webroot (or you can set the concrete.cache.directory_relative configuration option)
I found that some re_dir should be configured in the concrete/config/site.php but there is no site.php file at that place.
Is this a directory issue and how can I fix it?
(17, 1, 'O:52:"Concrete\\Core\\StyleCustomizer\\Style\\Value\\ImageValue":5:{s:11:"\0*\0imageUrl";s:79:"/_123456789/packages/theme_aaaaaa/themes/aaaaaa/images/pattern/header-shadow.png";s:6:"\0*\0fID";N;s:11:"\0*\0variable";s:19:"intro-image-default";s:8:"\0*\0scvID";N;s:9:"\0*\0scvlID";N;}'),
to
(17, 1, 'O:52:"Concrete\\Core\\StyleCustomizer\\Style\\Value\\ImageValue":5:{s:11:"\0*\0imageUrl";s:69:"/packages/theme_aaaaaa/themes/aaaaaa/images/pattern/header-shadow.png";s:6:"\0*\0fID";N;s:11:"\0*\0variable";s:19:"intro-image-default";s:8:"\0*\0scvID";N;s:9:"\0*\0scvlID";N;}'),