News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

2.0.16 update problem

Started by CapadY, September 29, 2020, 04:05:00 PM

Previous topic - Next topic

CapadY

Last hours I used to update a website from SMF 2.0.9
Because the big amount of MOD's and personal scripts I did it step by step.So:1.0.9 -> 1.0.101.0.10 -> 1.0.111.0.11 -> 1.0.121.0.12 -> 1.0.131.0.13 -> 1.0.141.0.14 -> 1.0.15So far so good, no problems.
But then, 1.0.15 -> 1.0.16After running this update there was only a blanc page.I did an update to PHP 7.2 and then I had an message on the screen:"Call to undefined function safe_unserialize()"
I would realy appreciate it when my site was back again but have no clou where to find this problem.Who can help me ?A strange thing is, also repair_settings gives a blanc page.PHP_info gives a proper result

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

CapadY

Oke, I'll give it a try again :)

Last hours I used to update a website from SMF 2.0.9
Because the big amount of MOD's and personal scripts I did it step by step.So:

2.0.9 -> 2.0.10
2.0.10 -> 2.0.11
2.0.11 -> 2.0.12
2.0.12 -> 2.0.13
2.0.13 -> 2.0.14
2.0.14 -> 2.0.15
So far so good, no problems.

But then, 2.0.15 -> 2.0.16
After running this update there was only a blanc page.
I did an update to PHP 7.2 and then I had an message on the screen:"Call to undefined function safe_unserialize()"

I would realy appreciate it when my site was back again but have no clou where to find this problem.Who can help me ?

A strange thing is, also repair_settings gives a blanc page.
PHP_info gives a proper result
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sir Osis of Liver

Did you start with 1.0.9 or 1.1.9?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

shadav

fairly sure you can't use php 7.2 on anything under 2.0.17
lower your php version and see what happens

Dzonny

The problem appear when forum is updated to 2.0.16, right?
If so, 2.0.16 support php from 5.4 to 7.2+:
https://custom.simplemachines.org/upgrades/index.php?action=upgrade;file=smf_patch_2.0.16.tar.gz;smf_version=2.0.15

Looks like some of the mods is causing the error though. Do you use tapatalk by any chance? Saw that it can cause error like yours.
As you have quite number of mods installed you should check which of those support your php version.


CapadY

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sir Osis of Liver

If the mods worked in 2.0.9, they should work in 2.0.17 up to php 5.6.  If you don't have current versions of mods, or some have not been updated to php 7, things may break.  If you bump php down to 5.6, does it fix the problem?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

CapadY

Evrything is working fine now except one thing.
At several places I get a blanc page withe the next errormessage :

"Call to undefined function safe_unserialize()"
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sir Osis of Liver

I believe safe_unserialize() is a core function in Subs.php.  Can you post complete error from error log?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

CapadY

Herewith the error from the log

The forum is running at SMF 2.0.17 at the moment
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

CapadY

Checking subs.php learned me several functions where missing, all with saveserialize in their name. I've copied them in from another forum and now there are no more errors.

Thanks for tthis help.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sir Osis of Liver

Um, what exactly did you do?  If you have 50 mods and custom code installed, copying code from a different forum could break a lot of things.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

CapadY

I know it can give new problems.
For now the most important thing is the forum is working.
I am busy to rebuild the forum from scratch on a local machine, started with SMF 2.0.17Problem is, a lot of the MOD's are not that actual they can be installed automaticly so, a lot of manual work to do.
As soon the newly rebuild forum is complete it will replace the forum where I had all the problems with.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: