Trying to update from 2.1.4 to 2.1.5

Started by Liviu Lalescu, June 25, 2025, 11:29:17 AM

Previous topic - Next topic

Liviu Lalescu

Hello,

I got the notification of the new version available. Nothing custom in my forum, just ~16 languages. In Admin, I have as a MOD 2.1.5 update from 2.1.4, I clicked on it, the tests are OK, I click install, then I get to blank Firefox page showing only a long link in the corresponding line.

Doug Heffernan

Quote from: Liviu Lalescu on June 25, 2025, 11:29:17 AMHello,

I got the notification of the new version available. Nothing custom in my forum, just ~16 languages. In Admin, I have as a MOD 2.1.5 update from 2.1.4, I clicked on it, the tests are OK, I click install, then I get to blank Firefox page showing only a long link in the corresponding line.


Can you post a screenshot of that long link? Can you also check your server error log page and see if there have been any errors logged in there recently?

Liviu Lalescu

The link is:

https://lalescu.ro/liviu/fet/forum/index.php?action=admin;area=packages;sa=install2;package=smf_2-1-5_patch.tar.gz;pid=0

The error log from the forum directory is:

[25-Jun-2025 15:30:58 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19
[25-Jun-2025 15:32:24 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19
[25-Jun-2025 15:34:08 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19
[25-Jun-2025 15:34:33 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19
[25-Jun-2025 15:52:34 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19
[25-Jun-2025 15:53:29 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19
[25-Jun-2025 15:58:22 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19
[25-Jun-2025 16:43:14 Europe/London] PHP Parse error:  syntax error, unexpected ')' in /home/lalescu/public_html/liviu/fet/forum/Packages/temp/$auto_1.php on line 19

Illori


Liviu Lalescu

I entered PHP select version and it said 7.1 (current).

Liviu Lalescu

Also, I am not getting email notifications on new posts from your site (for my last two notifications, no email, just alerts).

shawnb61

Are you running mysql or postgresql?

What version?
A question worth asking is born in experience & driven by necessity. - Fripp

Liviu Lalescu

I just entered php my admin:

Database server:

Server type: MariaDB
Server version: 10.6.19
Protocol version: 10

Web server:

libmysql - mysqlnd 8.1.32
PHP version: 8.1.32

Sir Osis of Liver

phpmyadmin is running in php 8.1, but that doesn't mean the forum is in same version.  Look in Admin > Support and Credits, that's the version your forum is at.  You should upgrade to at least php 8.1.
When in Emor, do as the Snamors.
                              - D. Lister

Liviu Lalescu

It is PHP 7.1.33. However, I saw that it is supported for SMF 2.1.5 and I am afraid to change the default PHP, preferring to leave this to my host.

Sir Osis of Liver

Should work in 7.1.  You're getting a syntax error, maybe a corrupt file.  Restore the backup in /Packages/backups, delete the package in package manager, try it again.
When in Emor, do as the Snamors.
                              - D. Lister

Liviu Lalescu

Quote from: Liviu Lalescu on June 25, 2025, 12:04:35 PMAlso, I am not getting email notifications on new posts from your site (for my last two notifications, no email, just alerts).


I got the email notification from the first post just now, after 1-2 hours.

shawnb61

Are you still having an issue, or did the second attempt at installing work?

If you're on MariaDB, take a peek at this also: https://www.simplemachines.org/community/index.php?topic=592050.0
A question worth asking is born in experience & driven by necessity. - Fripp

Liviu Lalescu

Still the same problem, shawnb61. I examined $auto_1.php and the parenthesis in line 19 seems OK.

Sir Osis, I don't have the backups enabled, and also I am a bit afraid to change manually.

Liviu Lalescu

I noticed that my $auto_1.php, ConverterInterface.php, and NoConverter.php don't have closing "?>" tag, like UpdateUnicode.php.

I don't know PHP, only C++.

Illori


shawnb61

#16
I have confirmed that PHP < 7.3 returns a parse error there. 

Prior to 7.3, PHP didn't like arrays with trailing commas after the last entries.  ONLY in the middle of a list, not at the end...  It was a pain which I have long since forgotten about...

It's not that the parentheses are mismatched, it's that with the comma there, it's expecting another array entry, so, the ')' is unexpected.  There are six such commas in that snippet that need to go, not just on that line.

My recommendation here is to upgrade, at least to PHP7.4.

Issue logged:  https://github.com/SimpleMachines/SMF/issues/8692
A question worth asking is born in experience & driven by necessity. - Fripp

Sesquipedalian

@Liviu Lalescu, the patch file has been fixed to deal with this problem for PHP 7.1. Please delete your current copy of the patch file and then download a new copy.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Liviu Lalescu

Thank you, SMF team, I just installed successfully SMF 2.1.5.

Advertisement: