News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Installation Error (fresh install of Beta 3)

Started by Rob Lightbody, June 03, 2017, 06:05:12 AM

Previous topic - Next topic

Rob Lightbody

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....

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.

d3vcho

Can you please post what's on line 69 in Errors.php?
"Greeting Death as an old friend, they departed this life as equals"

Arantor

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

Rob Lightbody

Quote from: d3vcho(); on June 03, 2017, 06:28:52 AM
Can you please post what's on line 69 in Errors.php?

// 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));


Quote from: Arantor on June 03, 2017, 06:36:37 AM
This is almost certainly another needs-PHP-5.4 issue.

My server is running PHP 5.4.37.

Thanks!

Arantor

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.

Rob Lightbody

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?


Arantor


Rob Lightbody

Quote from: Arantor on June 03, 2017, 07:28:34 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



Arantor

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.

shawnb61

#9
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)
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Rob Lightbody

Quote from: shawnb61 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)

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

https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip

shawnb61

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

shawnb61

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

Rob Lightbody

Quote from: shawnb61 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?

Hi,

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

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

Illori

create empty files of those name in the main SMF folder, then go from there.

Rob Lightbody

Quote from: Illori on June 10, 2017, 03:04:59 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

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

Illori


Rob Lightbody


Illori

our package will not change until another release is made, you need to download off github to get the fixed version.

Rob Lightbody

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

Advertisement: