Advertisement:

Author Topic: Installation Error (fresh install of Beta 3)  (Read 5280 times)

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Installation Error (fresh install of Beta 3)
« on: June 03, 2017, 06:05:12 AM »
Hi,

I download 2.1 Beta 3 last night to try.  I uploaded it to my server, set the permissions, and run through the install.  It all went smoothly until it asked me to create my own account, when I click next after this it says....

Code: [Select]
Notice: Undefined index: htmlspecialchars in /home/robligh/public_html/forum21/Sources/Errors.php on line 69

Fatal error: Function name must be a string in /home/robligh/public_html/forum21/Sources/Errors.php on line 69

The site is actually up and running OK, and I can login, so it created the account for me.

I don't know what I missed on the next/last step though?

Thanks very much,

- Rob

PS: Initial Feedback is it looks great.

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,856
  • Gender: Male
    • frandominguez03 on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #1 on: June 03, 2017, 06:28:52 AM »
Can you please post what's on line 69 in Errors.php?

"Greeting Death as an old friend, they departed this life as equals."

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,600
    • StoryBB/StoryBB on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #2 on: June 03, 2017, 06:36:37 AM »
This is almost certainly another needs-PHP-5.4 issue.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #3 on: June 03, 2017, 07:08:41 AM »
Can you please post what's on line 69 in Errors.php?

Code: [Select]
// Don't log the session hash in the url twice, it's a waste.
$query_string = $smcFunc['htmlspecialchars']((SMF == 'SSI' || SMF == 'BACKGROUND' ? '' : '?') . preg_replace(array('~;sesc=[^&;]+~', '~' . session_name() . '=' . session_id() . '[&;]~'), array(';sesc', ''), $query_string));

This is almost certainly another needs-PHP-5.4 issue.

My server is running PHP 5.4.37.

Thanks!

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,600
    • StoryBB/StoryBB on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #4 on: June 03, 2017, 07:13:55 AM »
The error you're getting only happens in 5.3, as this line is perfectly legitimate in 5.4.

It's possible for a server to run multiple versions of PHP at the same time, though.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #5 on: June 03, 2017, 07:20:09 AM »
Thanks.  I'm not quite sure where to go now though?

Under "PHP Variables" in Admin Center > Server Settings > PHP Info it says

_SERVER["SERVER_SOFTWARE"]    Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4 PHP/5.4.37

What else can I check please?


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,600
    • StoryBB/StoryBB on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #6 on: June 03, 2017, 07:28:34 AM »
What does Admin > Support and Credits say?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #7 on: June 03, 2017, 07:33:54 AM »
What does Admin > Support and Credits say?

It says

Version Information:
Forum version: SMF 2.1 Beta 3 (more detailed)
Current SMF version: [object HTMLElement]
GD version: bundled (2.1.0 compatible)
ImageMagick version: 6.2.8 05/07/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html (Imagick 3.1.2)
MySQLi engine: MySQL
MySQLi version: 5.5.52-cll
PHP: 5.4.37 (more detailed)
Server version: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_bwlimited/1.4 PHP/5.4.37



Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,600
    • StoryBB/StoryBB on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #8 on: June 03, 2017, 08:19:29 AM »
Oh, I'm blind, I didn't read the error correctly.

The second part of the error is a 5.3 error - but the first half makes it able to be any PHP version :(

Sounds like it could be a bug in the installer where it's not declaring htmlspecialchars correctly.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,412
    • sbulen on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #9 on: June 03, 2017, 09:23:33 AM »
I had the same issue in my php 5.6 test environment.  For me, the issue was that https had not been enabled in my test environment.

You can confirm by looking at phpinfo() & checking if you can see https in "Registered PHP Streams".

By the way, in my case, the installation was successful.  The very last step was checking for updates, and this is what failed.

(Logged on github...  https://github.com/SimpleMachines/SMF2.1/issues/4085)
« Last Edit: June 03, 2017, 09:49:09 AM by shawnb61 »
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #10 on: June 06, 2017, 02:27:13 PM »
I had the same issue in my php 5.6 test environment.  For me, the issue was that https had not been enabled in my test environment.

You can confirm by looking at phpinfo() & checking if you can see https in "Registered PHP Streams".

By the way, in my case, the installation was successful.  The very last step was checking for updates, and this is what failed.

(Logged on github...  https://github.com/SimpleMachines/SMF2.1/issues/4085)

Thanks for that suggestion.  I am using https however I think the Registered PHP Streams looks OK ?

Code: [Select]
https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,412
    • sbulen on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #11 on: June 06, 2017, 10:52:37 PM »
Yes, that looks like you properly have the https stream supported. 

There are two layers to our issues:  First, something goes wrong, and the installer attempts to report an error.  Second, the error reporting itself fails. 

For me, the root cause was that https wasn't supported.  I am not sure what the root cause of your issue was.  The error reporting needs to be addressed so we can find out.

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,412
    • sbulen on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #12 on: June 08, 2017, 09:34:57 PM »
The QE2 Story Forum -

I believe changes have gone into SMF2.1b3 today that address the error reporting issue. 

It would be helpful to know how an installation into your environment behaves now.  Specifically:
  -  Does it complete without giving the 'htmlspecialchars' error?
  -  Is there an error in your error log upon completion?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #13 on: June 10, 2017, 03:03:50 PM »
The QE2 Story Forum -

I believe changes have gone into SMF2.1b3 today that address the error reporting issue. 

It would be helpful to know how an installation into your environment behaves now.  Specifically:
  -  Does it complete without giving the 'htmlspecialchars' error?
  -  Is there an error in your error log upon completion?

Hi,

Well I tried a complete fresh install tonight, and got completely stuck at the first step.

Code: [Select]
Checking Files are Writable

Some files need to be writable for SMF to work properly. This step allows you to let the installer make them writable for you. However, in some cases it won't work - in that case, please make the following files 777 (writable, 755 on some hosts):

    Settings_bak.php
    db_last_error.php

This installer can connect via FTP to fix the files that need to be writable and are not. If this doesn't work for you, you will have to go in manually and make the files writable. Please note that this doesn't support SSL right now.
Unable to connect to FTP server with this combination of details.

550 Could not change perms on Settings_bak.php: No such file or directory -> Settings_bak.php
550 Could not change perms on db_last_error.php: No such file or directory -> db_last_error.php

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,259
Re: Installation Error (fresh install of Beta 3)
« Reply #14 on: June 10, 2017, 03:04:59 PM »
create empty files of those name in the main SMF folder, then go from there.

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #15 on: June 10, 2017, 03:15:16 PM »
create empty files of those name in the main SMF folder, then go from there.

OK I did that, even though I shouldn't have had to (need to feed back to the developers!) and I got to step 6: Admin account, and thats erroring with

Code: [Select]
Notice: Undefined index: htmlspecialchars in /home/robligh/public_html/newsite/forum/Sources/Errors.php on line 69

Fatal error: Function name must be a string in /home/robligh/public_html/newsite/forum/Sources/Errors.php on line 69

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,259
Re: Installation Error (fresh install of Beta 3)
« Reply #16 on: June 10, 2017, 03:25:32 PM »
did you download it from sm.org or from github?

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #17 on: June 10, 2017, 03:29:14 PM »
did you download it from sm.org or from github?

sm.org.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,259
Re: Installation Error (fresh install of Beta 3)
« Reply #18 on: June 10, 2017, 03:29:18 PM »
our package will not change until another release is made, you need to download off github to get the fixed version.

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #19 on: June 10, 2017, 03:39:15 PM »
Hi.

I'm doing my best to try to test the installation and feedback to the right people, but I'm not finding it easy.  I am trying to support the simple machines project.

I just went here > https://github.com/SimpleMachines/SMF2.1 and chose "download a zip" and then extracted that and uploaded it to a new folder.

There is no install.php, so I'm stuck again!

Thanks very much,

- Rob


Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #21 on: June 10, 2017, 06:45:03 PM »
https://wiki.simplemachines.org/smf/Contributing_to_SMF#How_to_install_SMF_from_github

OK Thanks, understood!

I've done this, and now get the following error at step 1.  As discussed earlier in this topic, I do meet the minimum requirements.

Code: [Select]
Critical Error!
Warning! You do not appear to have a version of PHP installed on your webserver that meets SMF's minimum installations requirements.
If you are not the host, you will need to ask your host to upgrade, or use a different host - otherwise, please upgrade PHP to a recent version.

If you know for a fact that your PHP version is high enough you may continue, although this is strongly discouraged.

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,412
    • sbulen on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #22 on: June 10, 2017, 08:04:32 PM »
Thanks for all the info.

Sorry for not specifying using the github version...   I should have specified that.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #23 on: June 11, 2017, 07:38:48 AM »
Any further help appreciated.

I don't think we want to start testing it properly until we can get a clean, fresh install of it to work.

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,412
    • sbulen on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #24 on: June 11, 2017, 11:28:55 AM »
I cannot reproduce the php version error. 

What is really odd is that you did not get that error on the prior installation.  Are you using the exact same environment?

It may be helpful to see what phpinfo() says in that environment, to see if it detects the right php version:
   https://wiki.simplemachines.org/smf/What_is_a_phpinfo()_file

The installation is intended to work from a fresh set of files (i.e., the folder should be empty beforehand) & to populate an empty database.  Are you attempting a fresh install, in a clean new folder?

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline albertlast

  • Development Contributor
  • Full Member
  • *
  • Posts: 589
Re: Installation Error (fresh install of Beta 3)
« Reply #25 on: June 11, 2017, 11:44:59 AM »
ther is no error as fare i see,
in the install.php is min version of 5.4.45 and he got 5.4.37
and his version is lower as the defined version. -> works as designed.

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,412
    • sbulen on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #26 on: June 11, 2017, 12:24:28 PM »
Yep...   It just changed days ago (I'm assuming as a result of lessons learned with 2.0.14).  I hadn't noticed that.  That explains why there was no php version issue on the prior attempt. 

Options are to upgrade the php version, or, if that's a problem at the moment, to use the released beta version. 

« Last Edit: June 11, 2017, 12:41:54 PM by shawnb61 »
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,259
Re: Installation Error (fresh install of Beta 3)
« Reply #27 on: June 11, 2017, 12:30:14 PM »
the beta version had a bug that the user was trying to see if was resolved in the github version.

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #28 on: June 11, 2017, 12:52:39 PM »
ther is no error as fare i see,
in the install.php is min version of 5.4.45 and he got 5.4.37
and his version is lower as the defined version. -> works as designed.

Thank you, and understood.

Is there any way the error message could actually say that (the version number required/found) ?

I have no way to upgrade my PHP version, unfortunately, so will have to put the project on hold (although I will ask my hosting company if they can help).

Offline albertlast

  • Development Contributor
  • Full Member
  • *
  • Posts: 589
Re: Installation Error (fresh install of Beta 3)
« Reply #29 on: June 11, 2017, 01:32:53 PM »
5.4.45 i think is to high any minor version of 5.4.x should be enough.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,600
    • StoryBB/StoryBB on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #30 on: June 11, 2017, 05:40:02 PM »
5.4.45 i think is to high any minor version of 5.4.x should be enough.

Of course 5.4.0 would be high enough. But we can blame all the hosts for not being up to date.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Sesquipedalian

  • The Mad Doctor
  • Lead Developer
  • Sr. Member
  • *
  • Posts: 968
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #31 on: June 11, 2017, 08:50:22 PM »
This should take care of The QE2 Story Forum once it is merged: https://github.com/SimpleMachines/SMF2.1/pull/4119
I promise you nothing.

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

Offline The QE2 Story Forum

  • Charter Member
  • Jr. Member
  • *
  • Posts: 151
    • The QE2 Story
Re: Installation Error (fresh install of Beta 3)
« Reply #32 on: June 12, 2017, 01:23:22 PM »
Me again, and I come with good news!

My hosting company upgraded me to PHP 5.6.30.  I deleted everything, re-downloaded release 21 from github, copied the files from the other folder and created a blank db_last_error.php, and then ran the install.

Perfection - not a single problem.

Thank you.

Offline Sesquipedalian

  • The Mad Doctor
  • Lead Developer
  • Sr. Member
  • *
  • Posts: 968
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: Installation Error (fresh install of Beta 3)
« Reply #33 on: June 12, 2017, 01:37:23 PM »
Good to hear.

Meanwhile, the requested change has been merged, so anyone else PHP 5.4.0 or higher will be able to install SMF 2.1.
I promise you nothing.

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