News:

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

Main Menu

Can't install mods after upgrade from 2.0.15 to 2.1 RC1

Started by chadon, February 06, 2019, 11:23:33 AM

Previous topic - Next topic

chadon

Hi, I upgraded my forum last night from SMF 2.0.15 to 2.1 RC1 and everything seems fine but but when I try to install a mod, I get the message below when I apply the modifications and nothing gets installed. I also have to add that I had to do an utf8 conversion of the database during the upgrade. The mods I tried to install are Ezportal and Simple Audio Video Embedder.

QuoteThis page isn't working www.mustangv8.com is currently unable to handle this request.
HTTP ERROR 500

Not sure if it is related but I also noticed the following error when I click on the "Integration Hooks" tab from the admin, forum maintenance page:

array(12) { [0]=> array(3) { ["file"]=> string(47) "/home/mustvco/public_html/fr/Sources/Errors.php" ["line"]=> int(290) ["function"]=> string(9) "log_error" } [1]=> array(1) { ["function"]=> string(17) "smf_error_handler" } [2]=> array(3) { ["file"]=> string(58) "/home/mustvco/public_html/fr/Sources/ManageMaintenance.php" ["line"]=> int(2068) ["function"]=> string(5) "fread" } [3]=> array(1) { ["function"]=> string(26) "get_integration_hooks_data" } [4]=> array(3) { ["file"]=> string(50) "/home/mustvco/public_html/fr/Sources/Subs-List.php" ["line"]=> int(114) ["function"]=> string(20) "call_user_func_array" } [5]=> array(3) { ["file"]=> string(58) "/home/mustvco/public_html/fr/Sources/ManageMaintenance.php" ["line"]=> int(2009) ["function"]=> string(10) "createList" } [6]=> array(3) { ["file"]=> string(45) "/home/mustvco/public_html/fr/Sources/Subs.php" ["line"]=> int(5079) ["function"]=> string(22) "list_integration_hooks" } [7]=> array(3) { ["file"]=> string(58) "/home/mustvco/public_html/fr/Sources/ManageMaintenance.php" ["line"]=> int(113) ["function"]=> string(11) "call_helper" } [8]=> array(1) { ["function"]=> string(17) "ManageMaintenance" } [9]=> array(3) { ["file"]=> string(46) "/home/mustvco/public_html/fr/Sources/Admin.php" ["line"]=> int(497) ["function"]=> string(14) "call_user_func" } [10]=> array(1) { ["function"]=> string(9) "AdminMain" } [11]=> array(3) { ["file"]=> string(38) "/home/mustvco/public_html/fr/index.php" ["line"]=> int(151) ["function"]=> string(14) "call_user_func" } } Error loop.

In case it is of any use, I installed this utf8 diagnostic tool:

https://www.mustangv8.com/fr/SMF_UTF8_Diag.php

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

chadon

No, but I get a lot of critical errors in SMF's error log like this one:


QuoteType of error: Critical
Erreur de décodage Json : Erreur de syntaxe, JSON malformé
https://www.mustangv8.com/fr/index.php?topic=36656.3220
/home/mustvco/public_html/fr/Sources/Load.php (Line 1581)

albertlast


chadon


SychO

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

chadon

Like I said, I tried to install  Ezportal and Simple Audio Video Embedder but both failed and there is no other mod installed since the upgrade.

vbgamer45

Quote from: ForumMustang.com on February 06, 2019, 12:47:07 PM
No, but I get a lot of critical errors in SMF's error log like this one:


QuoteType of error: Critical
Erreur de décodage Json : Erreur de syntaxe, JSON malformé
https://www.mustangv8.com/fr/index.php?topic=36656.3220
/home/mustvco/public_html/fr/Sources/Load.php (Line 1581)
That one looks like dispaly fields are corrupted someohow
$smcFunc['json_decode']($modSettings['displayFields'], true);
Can you grab the smf_settings database entry for displayFields

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

chadon

Quote from: vbgamer45 on February 06, 2019, 02:08:24 PM
That one looks like dispaly fields are corrupted someohow
$smcFunc['json_decode']($modSettings['displayFields'], true);
Can you grab the smf_settings database entry for displayFields
Here is what I have:

a:7:{i:0;a:7:{s:7:"colname";s:8:"location";s:5:"title";s:4:"Lieu";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:1;a:7:{s:7:"colname";s:7:"mustang";s:5:"title";s:17:"Millésime Mustang";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:2;a:7:{s:7:"colname";s:8:"modifica";s:5:"title";s:20:"Autres infos Mustang";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"2";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:3;a:7:{s:7:"colname";s:11:"cust_motori";s:5:"title";s:12:"Motorisation";s:4:"type";s:6:"select";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:4;a:7:{s:7:"colname";s:11:"cust_transm";s:5:"title";s:12:"Transmission";s:4:"type";s:6:"select";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:5;a:7:{s:7:"colname";s:11:"cust_carros";s:5:"title";s:11:"Carrosserie";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:6;a:7:{s:7:"colname";s:7:"cust_pr";s:5:"title";s:29:"Présentation de votre Mustang";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"1";s:7:"enclose";s:100:"<a href="{INPUT}"><img src="https://www.mustangv8.com/fr/Themes/red-clique/images/pony.png" /></a>
";s:13:"customsmiicon";s:0:"";}}


here it is again in a quote:

Quotea:7:{i:0;a:7:{s:7:"colname";s:8:"location";s:5:"title";s:4:"Lieu";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:1;a:7:{s:7:"colname";s:7:"mustang";s:5:"title";s:17:"Millésime Mustang";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:2;a:7:{s:7:"colname";s:8:"modifica";s:5:"title";s:20:"Autres infos Mustang";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"2";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:3;a:7:{s:7:"colname";s:11:"cust_motori";s:5:"title";s:12:"Motorisation";s:4:"type";s:6:"select";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:4;a:7:{s:7:"colname";s:11:"cust_transm";s:5:"title";s:12:"Transmission";s:4:"type";s:6:"select";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:5;a:7:{s:7:"colname";s:11:"cust_carros";s:5:"title";s:11:"Carrosserie";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"0";s:7:"enclose";s:0:"";s:13:"customsmiicon";s:0:"";}i:6;a:7:{s:7:"colname";s:7:"cust_pr";s:5:"title";s:29:"Présentation de votre Mustang";s:4:"type";s:4:"text";s:3:"bbc";s:1:"0";s:9:"placement";s:1:"1";s:7:"enclose";s:100:"<a href="{INPUT}"><img src="https://www.mustangv8.com/fr/Themes/red-clique/images/pony.png" /></a>
";s:13:"customsmiicon";s:0:"";}}


Arantor

Looks like the upgrader didn't properly convert the settings to JSON.

chadon

Quote from: albertlast on February 06, 2019, 02:24:13 PM
Backtrace you get when you click on the symbole: https://user-images.githubusercontent.com/1782906/39405080-93fdaa04-4b9e-11e8-84ba-264179c3d2b9.png
Thanks, here it is:

QuoteErreur
Type d'erreur: Critical
Message d'erreur: Erreur de décodage Json : Erreur de syntaxe, JSON malformé
Fichier: /home/mustvco/public_html/fr/Sources/Load.php
Ligne: 1581
URL de la page causant l'erreur: https://www.mustangv8.com/fr/index.php?topic=24691.0

and:

QuoteInformations de traçage
#0: smf_json_decode()
Appelé de /home/mustvco/public_html/fr/Sources/Load.php en ligne 1581
#1: loadMemberContext()
Appelé de /home/mustvco/public_html/fr/Sources/Display.php en ligne 1565
#2: prepareDisplayContext()
Appelé de /home/mustvco/public_html/fr/Themes/default/Display.template.php en ligne 254
#3: template_main()
Appelé de /home/mustvco/public_html/fr/Sources/Load.php en ligne 2463
#4: loadSubTemplate()
Appelé de /home/mustvco/public_html/fr/Sources/Subs.php en ligne 3279
#5: obExit()
Appelé de /home/mustvco/public_html/fr/index.php en ligne 154

chadon

Quote from: Arantor on February 06, 2019, 02:29:53 PM
Looks like the upgrader didn't properly convert the settings to JSON.
Yes, during the upgrade, the site stopped responding for a few hours while it was converting the settings to JSON and I had to restart the upgrade from that step with no ther issue.
Should I run the upgrade script again without risking more damage?

Kindred

I would actually suggest:

restore the backup you took of the site and database before the attempted upgrade.
Start the upgrade over from the working, clean 2.0.15 set.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

chadon


shawnb61

Quote"the site stopped responding for a few hours while it was converting the settings to JSON"...   
This sounds like there may have been an issue converting some of the settings to JSON.  If this recurs (I suspect it will), we will need to look at those settings as they exist in 2.0.15 on this forum. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

chadon

From what I understand, the issue is coming from user profile's custom fields and I had a lot of them in my forum.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor


chadon

From the admin panel of the forum it says I have 14 custom fields.

Advertisement: