Issue with the migration tool
PermalinkI'm getting to following error when trying to open the migration tool on my version 5.6.3.5 site:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/crimsonn/public_html/packages/migration_tool/controllers/dashboard/migration/export.php on line 65 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/crimsonn/public_html/packages/migration_tool/controllers/dashboard/migration/export.php on line 65 Parse error: syntax error, unexpected T_STRING in /home/crimsonn/public_html/packages/migration_tool/controllers/dashboard/migration/export.php on line 65
Line 65 of export.php is:
Also, I can do a fresh install of C5 (version 8.3.2) via my hosting control panel, but would I be able to install it to a temporary sub-domain whilst I sort out the migration and then delete the legacy version of my site and move the new 8.3.2 installation over to the main domain?
Cheers!
1. You can just swap the main /concreet directory for the one in the zip from github. If you have run previously run an update, you will need to find the update pointer line at the end of config/site.php and remove it.
2. If you have run previously run an update, you can find the /concrete directory in the relevant part of /updates and swap it for the one in the zip.
3. You can create a new subdirectory beneath /updates, then find the update pointer line at the end of config/site.php and change it to refer to the new directory you created.
All of the above work. I prefer 1 because it gives me a chance to clear out a lot of redundant code at the same time.
The only part of the zip you need in /concrete. The rest is only needed for fresh installs and can be thrown away.
What can go wrong:
- the new /concrete dir is in the wrong place
- the pointer in /config/site.php is wrong
- wrong zip extraction
- wrong zip downloaded from github
- too much extracted, so more than just /concrete has been patched
- some people put the whole site in a dir called /concrete, so you have /concrete/concrete and that confuses things.
Just to make sure I've gone through all the steps correctly:
- the new /concrete dir is in the wrong place
I've placed the folder in 'updates' and have renamed it to 'concretePHP7'
- the pointer in /config/site.php is wrong
The pointer is set to: <?php ?><?php //?><?php ?><?php define('DIRNAME_APP_UPDATED', 'concretePHP7');?>
- wrong zip extraction
From the zip file I took the 'web/concrete' folder
- wrong zip downloaded from github
This is the zip I downloaded:https://github.com/concrete5/concrete5-legacy/pull/1955...
- too much extracted, so more than just /concrete has been patched
Only took the 'concrete' folder, haven't unzipped anything else
- some people put the whole site in a dir called /concrete, so you have /concrete/concrete and that confuses things.
I've checked and that isn't the case + I know it's picking up the pointer in site.php as I get the HTTP ERROR 500 error when I switch the pointer from 'concrete5.6.3.5_remote_updater' to 'concretePHP7'
Sorry, how to I access the apache/PHP logs?
As you uploaded this manually, another possibility could be file/directory permissions and ownership. Sometimes the FTP account has a different owner to the Apache username, so your uploaded files may not be accessible. So check ownership and permissions on the directories you examine above.
Have any of your previous updates been manual via FTP, or were they all through the dashboard? (ie, is this the first time you have attempted a completely manual update?)
The location of log files depend on your host. If you cant find them through your host control panel, check with their support desk.
Incompatibilities in addons, try the addon developer, but you may need to resolve them for yourself.
If you do end up fixing php incompatibilities in an addon, please start a forum thead and post details, like I did for eCommerce.
I'd be happy to help out but I can't get my site to load at all on 7.2, I'm just getting the standard 'HTTP ERROR 500' message. I'm happy to make a note of the issues I've found running it on 7.1 though if it'd help? The biggest one being that the dashboard panel (bar at the top) isn't loading in at all meaning that I'm unable to make any edits - to access the dashboard I have to go tohttp://crimsonnight.com/index.php/dashboard/.... On my dashboard there are alerts regarding the 'skybluesofa_social_share' plugin but generally I haven't noticed anything not functioning on my site.
Cheers
With php 7.1 I suspect there are issues with addons, themes and non-core code. Many of us have sites running successfully on php7.0 and 7.1. For php7.2 to date, only the upload issue is pending on github.
There may also be problems lurking with uses of mcrypt, deprecated in php7.2.
You could try enabling the debug to browser setting in the dashboard. You could also do a quick swap back to Greek Yogurt to see if it is theme related.
https://github.com/concrete5/concrete5-legacy/pull/1955...
Its a port of c5.6 to run on php7. Its good on php7 and php7.1. Was a thumbnail bug on php7.2 as perhttps://github.com/concrete5/concrete5-legacy/issues/1972...
Its being used reliably on many 5.6 sites. You will need to check addon compatibility withphp7. Some, such as eCommerce, may require some fixes
http://www.concrete5.org/community/forums/legacy-version-5-6-x/hack...
Upgrade to 5.6.3.5 first, then simply /concrete directory in the upgrade or in the core and adjust the pointer in config/site.php.