XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author:

[New] After two clean attempts to install no luck (solved)

FJCastanedoJordan
New Poster
**




Posts: 2
Registered: 6-10-2018
Member Is Offline


[*] posted on 6-11-2018 at 12:11 AM
[New] After two clean attempts to install no luck (solved)


URL completa del foro: http://www.distribuidora3hp.com/forum/index.php
XMB Versión: 1.9.11

After two atempts to instal version 1.9.11 patch 15 I just coldn´t get it to run the first time.

All I get is this:
The system has failed to process your request. If you're an administrator, please set the DEBUG flag to true in config.php.

After turning on DEBUG mode in Config.php it keeps telling me the same line above.

I have a 1.9.11 version installed at another dir in the web server and runs ok. I just haven´t gone public yet.
Just wanted to install the latest patch from zero to reset all changes I made to the other one.

The frist attempt froze qhen checking the installation requirementes and it never got to build the database completely. Only the information schema got build.

After debugging I changed the following in mysqli.php:

PHP Version on my Web server: 5.3.29

Bugs encountered and fixed:

File: mysqli.php

Line 302:
Change from: if ( ( $warnings = $query2->fetch_row()[0] ) > 0 ) { This requires PHP version 5.4 or newer
to: if ( ( $warnings = $query2->fetch_row() ) > 0 ) {

Line 378
Change from: $return = $query->fetch_array()[$field]; This requires PHP version 5.4 or newe
to: $return = $query->fetch_array($field);

After that it just keeps giving the error I first mentioned.

I even tried to upgrade the forum but to no avail.

Any help would be appreciate it.
--------------------------------------------------------------------------------
Added later: The above "bugs" are not bugs at all. The original syntax is correct. I just forced the code not to give an error but it does not work as expected. The reason is explained in the next message.
View user's profile View All Posts By User
FJCastanedoJordan
New Poster
**




Posts: 2
Registered: 6-10-2018
Member Is Offline


[*] posted on 6-11-2018 at 12:41 PM


From what I read on the internet, this is (might be) an issue of not having the right version of PHP installed on the web server that hosts my site.

The version of PHP installed is 5.3.29

The version needed for the mysqli.php to work must be 5.4 or newer.

What I did, was to substitute both files mysql.php and mysqli.php with a copy of a previous install of XMB. It was installed in 2015 and although is version 1.9.11, it is an older patch, so I figure that the files affected must conform to PHP 5.3.29 in this older patch.

Since that version does not have a mysqli.php file I just made a copy of mysql.php and rename it to mysqli.php.

The XMB forum finally got up and ran.

NOTE: Althought the problem seems to be solved I would avvise to test it further before using it with this "hack" to run a full working Forum. I will be testing it and post any finding.
View user's profile View All Posts By User

  Go To Top

Powered by XMB 1.9.11 (Debug Mode)
Forum Script Software by XMB © 2001-2017 The XMB Group
[Queries: 16] [PHP: 30.4% - SQL: 69.6%]
Funded with thanks to competitions website.