× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update to 4.3.16
#1
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:

<pre>
Code:
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:
</pre>
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?
  Reply
#2
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?
  Reply
#3
Can you dump your updates table so we can see what updates have been applied and what haven't?
  Reply
#4
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
  Reply
#5
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
  Reply
#6
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.
  Reply
#7
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.
  Reply
#8
Your init.php was patched you need to re-enter your credentials.
  Reply
#9
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.



  Reply
#10
I got around to trying a burn-it-up update. Increased memory to 1Gb, runtime to 1200 seconds and all I got was a 0.5Gb log file and no update Smile

I'll try out your commenting of lines, and see how I get on. Cheers.

  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)