Moving site to new server, page stucks when loading path to blocks
Permalink
Hello, I try to move ready website from one server to another, but for the first time im not able to do it.
On the new server i get error:
"login" block isn't part of core but c5 searches it there. when i moved "login" block into [root]/concrete/blocks the site moved on till theme loading point and stucked at same error but trying to load view.php from [root]/concrete/themes/my_theme/view.php
Moreover im able to do clean installation of C5, so I have no idea what where the problem could be.
I can provide any required information to solve the problem. Looking forward for your replies !
On the new server i get error:
Warning: require_once(/concrete/blocks/login/controller.php) [function.require-once]: failed to open stream: No such file or directory in /concrete/core/libraries/loader.php on line 218 Fatal error: require_once() [function.require]: Failed opening required '/concrete/blocks/login/controller.php' (include_path='//libraries/3rdparty:/concrete/libraries/3rdparty:.:/:/usr/local/php/pear5') in /concrete/core/libraries/loader.php on line 218
"login" block isn't part of core but c5 searches it there. when i moved "login" block into [root]/concrete/blocks the site moved on till theme loading point and stucked at same error but trying to load view.php from [root]/concrete/themes/my_theme/view.php
Moreover im able to do clean installation of C5, so I have no idea what where the problem could be.
I can provide any required information to solve the problem. Looking forward for your replies !
Hello, thanks for reply, but so far those values were set to 0. I mean ENABLE_OVERRIDE_CACHE and ENABLE_BLOCK_CACHE, i haven't found ENABLE_CACHE record, maybe i should make it manually ?
Any ideas how can i fix this issue ?
Any ideas how can i fix this issue ?
As mhawke says, c5 searches a number of paths in sequence for any block, package or theme. If it does not find it, then you get that sort of error message when it gets to the end. By copying files about to places they wouldn't normally be, you are fixing the symptoms, but not the basic issue.
The overrides cache keeps a quick list of where some of this sequence of searches ends up, so cutting down the amount of looking up needed. Hence the suggestion to switch it off.
If paths are not being found, a few more things to check:
- Was your database fully imported to the new server?
- Have you updated the database connection details in config/site.php?
- Have you removed the pretty urls code from .htaccess and disabled pretty urls in the database?
- Is there any DIR_REL or other constants other than database connection set in config/site.php
- Did you make any upgrades to c5 during development, and have you copied the updates directory across?
You can find much of the above and some other tips in the documentation for my Backup Voodoo addon. You don't need to buy the addon to read the docs (though I am always happy when site developers do buy it)
The overrides cache keeps a quick list of where some of this sequence of searches ends up, so cutting down the amount of looking up needed. Hence the suggestion to switch it off.
If paths are not being found, a few more things to check:
- Was your database fully imported to the new server?
- Have you updated the database connection details in config/site.php?
- Have you removed the pretty urls code from .htaccess and disabled pretty urls in the database?
- Is there any DIR_REL or other constants other than database connection set in config/site.php
- Did you make any upgrades to c5 during development, and have you copied the updates directory across?
You can find much of the above and some other tips in the documentation for my Backup Voodoo addon. You don't need to buy the addon to read the docs (though I am always happy when site developers do buy it)
I will provide further informations about my enviroment and answer your questions.
- i made backup from c5 backend and imported it via phpmyadmin on new server, utf8_general_ci coding.
- my site.php entries mathches database details, on the same details i was able to install plain version of concrete5.
- before creating database copy on old server i cleared cache, removed old page versions, unchecked pretty urls and i haven't imported .htaccess file on new server.
- i haven't set any DIR_REL and BASE_URL, but i was trying to do it without any effects - maybe there is a simple solution ?
- i created site on 5.6.2.1 version and i haven't done any updates. I was just overriding packages, blocks, single pages, css, some elements and models. also created some shipping methods for ecommerce package.
Still cannot figure it out, any help will be appreciated.
- i made backup from c5 backend and imported it via phpmyadmin on new server, utf8_general_ci coding.
- my site.php entries mathches database details, on the same details i was able to install plain version of concrete5.
- before creating database copy on old server i cleared cache, removed old page versions, unchecked pretty urls and i haven't imported .htaccess file on new server.
- i haven't set any DIR_REL and BASE_URL, but i was trying to do it without any effects - maybe there is a simple solution ?
- i created site on 5.6.2.1 version and i haven't done any updates. I was just overriding packages, blocks, single pages, css, some elements and models. also created some shipping methods for ecommerce package.
Still cannot figure it out, any help will be appreciated.
To check the obvious, confirm that the login block addon is located in /packages of your new server and that within that the login block exists with its controller.
You may be able to get directly into the dashboard at
www.www.yournewsite.com/index.php/dashboard...
And from there check the installed packages and c5 environment.
Check the .htaccess anyway. Whilst you have not created/copied it, maybe your host leaves a default.
Check the php versions match. Sometimes a new host will have a wonderfully up to date php by default, one that argues with some of the legacy code in c5.
A remote possibility, some ~ux installations have a faulty unzip command that unzips all files to lowercase. Concrete5 files and addons should all be lowercase (but occasionally there is a block that breaks this rule). However, many third party libraries used by both the core and by addons include uppercase in filenames (Zend for instance). So maybe spot check some uppercase file names from your old site are the same on your new site.
You may be able to get directly into the dashboard at
www.www.yournewsite.com/index.php/dashboard...
And from there check the installed packages and c5 environment.
Check the .htaccess anyway. Whilst you have not created/copied it, maybe your host leaves a default.
Check the php versions match. Sometimes a new host will have a wonderfully up to date php by default, one that argues with some of the legacy code in c5.
A remote possibility, some ~ux installations have a faulty unzip command that unzips all files to lowercase. Concrete5 files and addons should all be lowercase (but occasionally there is a block that breaks this rule). However, many third party libraries used by both the core and by addons include uppercase in filenames (Zend for instance). So maybe spot check some uppercase file names from your old site are the same on your new site.
yes, i have login block in packages directory. but i made a trick, on old server i uninstalled login package and installed it one more time. Then imported database to new server and it seems i fixed that issue BUT i got second issue, that website wants to load my theme from [root]/concrete/themes directory while it is located [root]/themes/ with error below (not php, c5 error this time)
.htaccess i removed for sure, also tried putting empty .htaccess.
Also i done other thing - i moved my theme to [root]/concrete/themes/
web page is working, but its workaround and im pretty sure i would expect future problems, so what i can do to load my theme properly ?
but so far i fixed one problem !
An unexpected error occurred. File /concrete/themes/zep/view.php not found. All themes need default.php and view.php files in them. Consult concrete5 documentation on how to create these files.
.htaccess i removed for sure, also tried putting empty .htaccess.
Also i done other thing - i moved my theme to [root]/concrete/themes/
web page is working, but its workaround and im pretty sure i would expect future problems, so what i can do to load my theme properly ?
but so far i fixed one problem !
The fact that it's looking in the concrete folder for your theme files is the same problem that you had with the missing login page. C5 firsts looks in [root]/themes/your_theme and if it can't find it there, it tries [root]/concrete/themes/your_theme. Again, the error message reflects the last place it looked before giving up.
What host are you with for the new site?
What host are you with for the new site?
Im using home.pl, both for webhosting and domain. Client i make website for, gave me ftp account with permission to one catalog, one database with one user.
On this provided data i was able to do clean installation of 5.6.2.1 ( as i mentioned before).
On this provided data i was able to do clean installation of 5.6.2.1 ( as i mentioned before).
A quick search for 'home.pl problems path' shows issues with the server configuration affecting recent Joomla and Drupal installations.
http://rozwijaj.home.pl/88079-Joomla-1-6-na-Home-pl...
http://www.rockettheme.com/forum/index.php?f=528&t=150414&r...
Some answers say to do something with 'service separation' which I have never heard of. Some have found the solution is to put their site in a sub-folder. Have you contacted tech support at home.pl?
I might suggest trying to talk the client into moving to a different host, perhaps Siteground. They are based in Eastern Europe I believe.
http://www.hostjury.com/reviews/SiteGround...
http://rozwijaj.home.pl/88079-Joomla-1-6-na-Home-pl...
http://www.rockettheme.com/forum/index.php?f=528&t=150414&r...
Some answers say to do something with 'service separation' which I have never heard of. Some have found the solution is to put their site in a sub-folder. Have you contacted tech support at home.pl?
I might suggest trying to talk the client into moving to a different host, perhaps Siteground. They are based in Eastern Europe I believe.
http://www.hostjury.com/reviews/SiteGround...
Hi, yeah that was the issue at the end. Also i never met name like "service separation" and i haven't had to use it till now - and I was using home.pl before. It was a checkbox in admin panel.
Thanks for help.
Thanks for help.
I would go into the database through phpMyAdmin and open the Config table and change both ENABLE_OVERRIDE_CACHE and ENABLE_CACHE to 0 (zero).