Advertisement:

Author Topic: Installation Error (fresh install of Beta 3)  (Read 5290 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,898
  • 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,667
    • 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,667
    • 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,667
    • 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,667
    • 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,434
    • 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,434
    • 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,434
    • 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,305
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,305
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,305
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