Moving a Concrete5 site

Permalink
Hi,

I 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

 
OKDnet replied on at Permalink Reply
OKDnet
Edit- Removed Duplicate
OKDnet replied on at Permalink Reply
OKDnet
Instructions in what post? You didn't need to do all that.
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 .
carpanther replied on at Permalink Reply
Thanks for your reaction.
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
OKDnet replied on at Permalink Reply
OKDnet
Ah. Those instructions are for moving a site to a completely different server (such as if you are changing hosting companies, or moving from a local development install to a final host). That is why it includes all those steps. Simply moving the content up a directory doesn't involve the database or the connection to it.
carpanther replied on at Permalink Reply
Hi,
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
OKDnet replied on at Permalink Reply
OKDnet
Well as I said before, you should not be messing with the database, at all. It's not necessary and is asking for trouble.

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.
carpanther replied on at Permalink Reply
I cannot access the .../seo/url page

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?
darbie replied on at Permalink Reply
darbie
Hi its because of wrong JSON unserialization. You need to change string length of particular lines too. For example

(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;}'),
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
I recently upgraded a site and moved it to another host. The site works but there are some oddities. I searched the database and changed all references to the prior home folder to the current folder, and then I get errors similar to the ones being reported. I have to change it back to make them go away, but I am concerned if I cancel the other account, the site will cease to function. And I see darbie's comments, but would that require changes to every instance? That would be a nightmare...