Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: yfleury on August 19, 2015, 08:47:21 PM

Title: Error on load.php line 91
Post by: yfleury on August 19, 2015, 08:47:21 PM
I have a fresh install of smf 2.1 and I have this error

Type of error: General
htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]:
Invalid multibyte sequence in argument

File: /home/quebecp/public_html/calculmapensionpointca/smf/Sources/Load.php
Line: 91

I have missing something?
Title: Re: Error on load.php line 91
Post by: JBlaze on August 19, 2015, 09:16:10 PM
I've seen this error before, and usually it's due to an ISO/UTF-8 conflict. However, I don't believe that a particular cause for it has been discovered yet.

Since installing, what exactly have you added/modified? Have you installed any languages? Made any modifications via FTP?
Title: Re: Error on load.php line 91
Post by: yfleury on August 19, 2015, 09:20:28 PM
It's a fresh install.
Just unzip by server and start installing and after install, I login and error appear 2 time for each page loaded.

Title: Re: Error on load.php line 91
Post by: JBlaze on August 19, 2015, 09:21:56 PM
Are you using the same server to host a SMF 2.0 install, and is it getting the same errors? I'm trying to see if this is due to a server misconfiguration, or just bad files.
Title: Re: Error on load.php line 91
Post by: yfleury on August 20, 2015, 06:28:31 AM
I use ftp to upload smf_2-1_beta2_install.zip to the web server. I use Cpanel to unzip it directly to smf folder on web server.

I don't know if can be usefull for you, but I will PM you info for login as admin to my smf.
Title: Re: Error on load.php line 91
Post by: Jade Elizabeth on August 20, 2015, 06:38:24 AM
You might want to try using ftp to upload the files, or at least to compare them to see if there are differences between the zip and the ones there :). Perhaps the zip didn't extract right or something?
Title: Re: Error on load.php line 91
Post by: yfleury on August 20, 2015, 12:28:51 PM
Quote from: Jade Elizabeth on August 20, 2015, 06:38:24 AM
You might want to try using ftp to upload the files, or at least to compare them to see if there are differences between the zip and the ones there :). Perhaps the zip didn't extract right or something?

I will check it tonight
Title: Re: Error on load.php line 91
Post by: yfleury on August 20, 2015, 04:56:19 PM
Ok I unzip smf_2-1_beta2_install.zip in a new folder on my laptop.
I upload the load.php (windows 1252) to the web server by ftp: no change, same error.
I upload the load.php (UTF8) to the web server by ftp: no change, same error.
Title: Re: Error on load.php line 91
Post by: Kindred on August 20, 2015, 06:32:05 PM
strange -- I just loaded the build from last night onto my test site and can not cause this to happen for me.
Title: Re: Error on load.php line 91
Post by: JBlaze on August 20, 2015, 07:06:28 PM
Looking at the code, it has to do with a utf8mb4 fix. Although, I don't see where exactly or how this error can be reproduced.

I'll have to comb through it tonight as I'm still re-learning my way through the 2.1 codebase.
Title: Re: Error on load.php line 91
Post by: live627 on August 20, 2015, 07:25:29 PM
Seems like he is using the release from this site which doesn't have the utf8mb4 fix.
Title: Re: Error on load.php line 91
Post by: yfleury on August 20, 2015, 07:27:45 PM
I download it from here
http://download.simplemachines.org/
Title: Re: Error on load.php line 91
Post by: JBlaze on August 20, 2015, 07:37:17 PM
Quote from: live627 on August 20, 2015, 07:25:29 PM
Seems like he is using the release from this site which doesn't have the utf8mb4 fix.
Quote from: yfleury on August 20, 2015, 07:27:45 PM
I download it from here
http://download.simplemachines.org/

That would make sense then.
Title: Re: Error on load.php line 91
Post by: live627 on August 20, 2015, 07:45:36 PM
May I have a link to your site?
Title: Re: Error on load.php line 91
Post by: yfleury on August 20, 2015, 07:49:57 PM
http://calculmapension.ca/smf/

Do you need more.... admin access?
Title: Re: Error on load.php line 91
Post by: JBlaze on August 20, 2015, 08:02:00 PM
Aha, line 91 of the site release is
'htmlspecialchars' => function ($string, $quote_style = ENT_COMPAT, $charset = 'ISO-8859-1') use ($ent_check, $utf8)
{
return $ent_check(htmlspecialchars($string, $quote_style, $utf8 ? 'UTF-8' : $charset));
},
Title: Re: Error on load.php line 91
Post by: yfleury on August 20, 2015, 08:06:14 PM
This mine
'htmlspecialchars' => function ($string, $quote_style = ENT_COMPAT, $charset = 'ISO-8859-1') use ($ent_check, $utf8)
{
return $ent_check(htmlspecialchars($string, $quote_style, $utf8 ? 'UTF-8' : $charset));
},
Title: Re: Error on load.php line 91
Post by: yfleury on August 21, 2015, 06:53:05 AM
where can I find utf8mb4 fix
Title: Re: Error on load.php line 91
Post by: Kindred on August 21, 2015, 07:48:14 AM
download a new copy of the nightly build from GitHub
Title: Re: Error on load.php line 91
Post by: yfleury on August 21, 2015, 12:23:30 PM
do you have a link?
Title: Re: Error on load.php line 91
Post by: Kindred on August 21, 2015, 12:24:22 PM
Why does no one read the sticky posts?

http://www.simplemachines.org/community/index.php?topic=530252.0
Title: Re: Error on load.php line 91
Post by: JBlaze on August 21, 2015, 12:51:31 PM
Quote from: Kindred on August 21, 2015, 12:24:22 PM
Why does no one read the sticky posts?

Why do you have to be such a grumpy old git? :P
Title: Re: Error on load.php line 91
Post by: Kindred on August 21, 2015, 12:58:33 PM
HEY!  that was not grumpy... :P  that was snarky...:D   and only a little bit, because I did also give him the infornation
Title: Re: Error on load.php line 91
Post by: yfleury on August 21, 2015, 01:11:32 PM
I just put load.php from the github to my web server and same problem. Just the line number was change

2: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument

File: /home/quebecp/public_html/calculmapensionpointca/smf/Sources/Load.php
Line: 117
Title: Re: Error on load.php line 91
Post by: Kindred on August 21, 2015, 01:20:32 PM
no... you can't just load ONE file...   you need to overwrite everything with the entire set of files from GitHub..
Title: Re: Error on load.php line 91
Post by: yfleury on August 21, 2015, 01:24:09 PM
I change only the load.PHP nothing else
Title: Re: Error on load.php line 91
Post by: Kindred on August 21, 2015, 01:35:45 PM
Quote from: Kindred on August 21, 2015, 01:20:32 PM
no... you can't just load ONE file...   you need to overwrite everything with the entire set of files from GitHub..