Updater stuck at "Updater is loading." (3.4.2 - > 3.4.4)

I was trying to update from 3.4.2 to 3.4.4 using the auto-updater, but it is stuck at “Download” phase with “Updater is loading.” being the last status. The browser’s Console shows the following error message:
Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at XMLHttpRequest. ((index):893)

Any ideas how to proceed with this?

Hi,
I am stuck at the same point. Also 3.4.2 to 3.4.4.
Webconsole says: “SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data”.

It happened when I entered a backup-directory that is write-protected, there is no way back.

regards,
Jan

1 Like

Is the database on the same version as the phpList version you are trying to upgrade from?

I don’t know. How do I check it?

If it isn’t you should see the message on the dashboard.

“Error: Your database is out of date, please make sure to upgrade”

1 Like

No, no such message there.

I assume you can log into your phpList installation, if this is the case, open up System on the left hand menu and click Upgrade phpList. You should see a report giving current database version as well

as phpList version.

Yes, I can login and use phpList normally. That page says:
Your database version: 3.4.2

What version of phpList is reported?

© phpList ltd. - v3.4.2

You can also query the database directly to find this like: select * from phpList_config where item = 'version';

When @xheni is debugging such issues she always recommend checking actions.txt for understanding where the updater got stuck.

1 Like

Hi,
I did the update from hand, just copied the files, saved the config etc.

It is all up and running. I will look at actions.txt next time.

Regards,
Jan

My actions.txt looks like this:
{"continue":false,"step":8}

I was able to solve this by fixing the sys_temp_dir PHP value.

1 Like

Hello and hope you can help.
I tried to update today and the system is stuck at “updater is Loading”

I’m not sure where to look for errors, except I was able to find this in chrome:

Uncaught TypeError: Cannot read property ‘classList’ of undefined
at setCurrentActionItem ((index):883)
at executeNextStep ((index):890)
at XMLHttpRequest. ((index):838)
(index):883 Uncaught TypeError: Cannot read property ‘classList’ of undefined
at setCurrentActionItem ((index):883)
at executeNextStep ((index):890)
at HTMLButtonElement. ((index):926)
3(index):883 Uncaught TypeError: Cannot read property ‘classList’ of undefined
at setCurrentActionItem ((index):883)
at executeNextStep ((index):890)
at HTMLButtonElement. ((index):926)
setCurrentActionItem @ (index):883
executeNextStep @ (index):890
(anonymous) @ (index):926

Can anyone shed some light on why I am stuck.
I may have deleted an online folder yesterday called something like:
_temp files updater
or something like that, not sure, but thought if I deleted current update it would work again.

I
Update translations - says up to date
Verify the DB structure - all green checkmarks
Initialise the database - all failed, says Error: Table already exists

I’m running PHP Version 7.2.30

Also:

Upgrade phpList

Your database version: 3.5.2

Your database is already the correct version, there is no need to upgrade

site is
http://www.mississauga4sale.com/lists/

Autoupdater has worked seamlessly in the past.

Can anyone help or suggest a fix?

Thank you,
Mark

You have to look for errors in your PHP error log file. You can ask your web hosting provider about where it is located on your server.

Hello enivid,
Thanks for the suggestion. I checked my PHP error log and there were no errors associated with PHPlist

I looked at my running processes and found this:
/opt/cpanel/ea-php72/root/usr/bin/php-cgi /home2/mississa/public_html/lists/updater/index.php
which tells me the updater is trying to load, yes?

I’m thinking of just doing a manual update and then trying the autoupdate for the next release.

Unless you or someone else can think of something, I’m stuck and can’t think of any other options at this point.

Thank you,
Mark

Update: I looked at a file called README.md and in that file it states in the

Notes section

“When the update process fails you should manually remove actions.txt file inside the config folder in order to reset the process and be able to try again.”
So I deleted the actions.txt file
The updater started again and this time it stalled at the
“Download in progress” stage
I’m giving it time, but it really should have passed this stage by now, unless the PHPlist servers are very slow or down right now, maybe that is the issue
I’ll try again later today and update you here
Thanks
Mark

Are PHP errors logged? If you are sure that the error logging is on, try to look for any errors related to tmp files upon running the Updater.