Repost for corrections:
Hi, I used to have 4.3.14 and I downloaded the file to upgrade to 4.3.16 (4314to4316.zip). after I copied the file and edit init.php (to include DB information), in the dashboard it says that I have to update DB:
Warning! Your database is out of date. Please click here to get the latest update. Failure to do so could cause system instability.
but every time I click on update, it takes forever, then it gives me a blank page! When I tried to run update.php from the console, I ended up with this error:
PHP Fatal error: require_once(): Failed opening required ‘users/helpers/helpers.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/html/portal/users/init.php on line 23
Any ideas?
Can you dump your updates table so we can see what updates have been applied and what haven't?
MariaDB [aus_portal]> select * from updates;
+----+--------------+---------------------+
| id | migration | applied_on |
+----+--------------+---------------------+
| 15 | 3GJYaKcqUtw7 | 2018-02-01 04:15:27 |
| 16 | 3GJYaKcqUtz8 | 2018-02-01 04:15:27 |
| 17 | 2XQjsKYJAfn1 | 2018-02-01 04:15:27 |
| 18 | 69qa8h6E1bzG | 2018-02-15 21:31:02 |
| 19 | 549DLFeHMNw7 | 2018-02-15 21:31:02 |
| 20 | 4Dgt2XVjgz2x | 2018-02-15 21:31:02 |
| 21 | VLBp32gTWvEo | 2018-02-21 04:06:05 |
| 22 | 1XdrInkjV86F | 2018-02-21 04:06:05 |
| 23 | Q3KlhjdtxE5X | 2018-02-21 04:06:05 |
+----+--------------+---------------------+
Thanks for your help
Do you think if I added the following row to the end of the table update will work?
24 | LoI68El211ON | 2018-03-14 04:30:41
It will-but check to make sure first the actual update applied. I don't have time ATM to look into this to see what exactly you're missing/what the update was-but just use update.php as your reference.
Hi
I've just upgraded (in stages) from 4.3.8 to 4.3.14 & all went well but if I try to upgrade from 4.3.14 to 4.3.16 then I get the following error:
SQLSTATE[HY000] [1049] Unknown database '4315'
I've tried restarting Apache & MySQL but same problem. All works perfectly if I restore my backup of 4.3.14
I'm sure I've done everything correctly so please help & thanks in anticipation.
Your init.php was patched you need to re-enter your credentials.
That issue with the hung/timeout session when updating...
I ended up commenting out 3 lines for updating "LoI68El211ON" in "users/update.php"
//unlink('../install/cleanup.php');
//unlink('../install/license.php');
//rrmdir('../install');
and let it finish. Something in those calls makes php shit it's pants... maybe if the directory/files do not exist...
I found it handy to add an else clause for each update so there was a little more to look at on the screen.
eg:
else{echo "Has already been applied: ".$update."<br>";}
Im a savage coder.
yar.
Bradley.