Problems updating Concrete5 5.5.2.1 to 5.6.x
I am currently upgrading a very old website from 5.4.x to 5.6.3.3. Until now, I was able to upgrade to 5.5.2.1 without problems.
But upgrading from 5.5.2.1 to 5.6.x causes a lot of problems. I tried upgrading directly to 5.6.3.3, which is what the server suggests, as well as 5.6.0, 5.6.0.1 and 5.6.0.2 with no luck.
The problem is that when I click Load Concrete5 loads 5.6.3.2. Not advertised. 5.6.3.3. After the download is complete, nothing happens. I cannot click the update, I can only click the download button again. However, Concrete5 is downloading the 5.6.3.2 update.
I tried to run the update script manually. Manual update script returns this message:
"Refresh concrete5
Your site has already been updated! You must delete this file for safety. Return Home Click here if you would like to rerun this script. The current version of Concrete5 is 5.5.2.1. "
So, I click and "? Force = 1" is added to the URL. This returns:
"Upgrade to 5.5.2.1 is complete!"
This is using site.php. If I uninstall this and run it as shown in the guides ( http://www.concrete5.org/documentation/how-tos/developers/manually-upgrade-concrete5/ ) I only get blank pages and cannot run the upgrade script manually, I've tried both methods mentioned in the manual with no luck and I've also tried different 5.6 versions.
So my next step was to download 5.6.3.3 manually and put it in the updates folder. Now the refresh page returns:
"Install local update
Make sure you back up your database before upgrading. Several updates are available. Select the update you want from the list below.
CURRENT VERSION
5.5.2.1
5.6.0.2
5.6.3.2
5.6.3.3 "
Selecting either one returns an empty page because the script changes the site.php file with the new name dir. This is like changing the dirname before the script updates the database and so nothing happens. The process stops and all pages are empty.
Now I'm stuck here. Right now I have no idea how to run the update script. Any help is appreciated!
Technical information:
I'm using a local server (MAMP) with: PHP: 5.5.18 MySQL: 5.5.38 Apache: 2.2.29 Caching: Disabled completely Pretty URL: Disabled
Environment Information:
concrete5 version 5.5.2.1
concrete5 Packages Migrating database case sensitivity (1.1.2), extended form (2.4).
concrete5 Overrides blocks / autonav, blocks / catalog_item, blocks / google_map, jobs / index_search.php.DONOTUSE, languages / da _DK, libraries / request.php, themes / compower -theme
Apache webserver software / 2.2.29 (Unix) mod_fastcgi / 2.4.6 mod_wsgi / 3.4 Python / 2.7.8 PHP / 5.5.18 mod_ssl / 2.2.29 OpenSSL / 0.9.8zd DAV / 2 mod_perl / 2.0.8 Perl / v5.20.0
API web servers apache2handler
PHP version 5.5.18
PHP modules apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlerader xsl, yaz, zip, zlib.
PHP settings
- log_errors_max_len - 1024
- max_execution_time - 5
- max_file_uploads - 20
- max_input_nesting_level - 64
- max_input_time - 60
- max_input_vars - 1000
- memory_limit - 128M
- post_max_size - 128M
- sql.safe_mode - Off
- upload_max_filesize - 128M
- ldap.max_links - Unlimited
- mysql.max_links - Unlimited
- mysql.max_persistent - Unlimited
- mysqli.max_links - Unlimited
- mysqli.max_persistent - Unlimited
- pcre.backtrack_limit - 1000000
- pcre.recursion_limit - 100000
- pgsql.max_links - Unlimited
- pgsql.max_persistent - Unlimited
- session.cache_limiter - nocache
- session.gc_maxlifetime - 7200
- soap.wsdl_cache_limit - 5
source to share
The problem in this case was better identified by examining the PHP error log (the hint here was a white screen after trying to update). The error was
PHP Fatal error: Call to undefined Request :: hasCustomRequestUser () method in /bla/bla/bla/concrete/core/models/user.php on line 177
And the solution was to delete the file [root] /libraries/request.php and manually start the upgrade with http: //site/index.php/tools/required/upgrade/
The whole solution can be found here .
source to share