News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

2.0.14 error

Started by Rogerd, May 15, 2017, 03:43:23 AM

Previous topic - Next topic

Rogerd

After patching from 2.0.13 to 2.0.14 I get this error  "Fatal error: Function name must be a string in /home/************/public_html/Sources/Load.php on line 142" my forum is now unusable, any help please.

Line 142:    $request = $smcFunc['db_query']('', '

PS:  I downloaded the patch from this site and uploaded using the package manager.

Arantor


Rogerd

Looking in phpmyadmin it says 5.6.30, sorry I'm hopeless at this stuff.

gorbi


Yarik1980

PHP Warning:  mysqli_select_db() expects parameter 1 to be mysqli, resource given in /Sources/Subs-Db-mysql.php on line 826
public function select($database, $connection = null)
{
global $db_connection;

==> return mysqli_select_db($connection === null ? $db_connection : $connection, $database);
}

vbgamer45

Quote from: Rogerd on May 15, 2017, 03:55:57 AM
Looking in phpmyadmin it says 5.6.30, sorry I'm hopeless at this stuff.
Please attach your Sources/Load.php file.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Rogerd

Here's my sources/load.php file, thank's

vbgamer45

Hmm file looks ok did you have any errors when installing the patch?

Do you know your php version along with if you mysqli installed or not?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Rogerd

I've put this in the hands of the hosts as i've no idea what I'm doing, they have asked the following questions, could anyone please confirm using any of the following is ok: PHP 5.4 up to 7.0 or does the 1.0.14 definately need PHP version 7.0
Also is apache 2.4 compatible with my SMF website.

Below is how the host put the questions

"get it confirmed if your websites will be compatible with PHP version 5.4 and above
It appears your application required PHP 7.0 version. Can you please confirm the same ?
Please get it confirmed with your Developer if Apache version 2.4 does not create any compatibility issues with the websites."

   Many thank's in advance.

Illori

we do not require php 7. php 5.4.* should be fine.

Rogerd

#10
Quote from: Illori on May 15, 2017, 11:00:45 AM
we do not require php 7. php 5.4.* should be fine.

Thank's Illori, and would apache 2.4 be ok, and I take it if I upgraded to PHP 7.0 it wouldn't be a problem, thank's

What I'm trying to say is PHP 7.0 and apache 2.4 would be ok to use without problems.

gorbi

Quote from: Illori on May 15, 2017, 11:00:45 AM
we do not require php 7. php 5.4.* should be fine.
5.4 or 5.3?

sawz

Quote from: Illori on May 15, 2017, 11:00:45 AM
we do not require php 7. php 5.4.* should be fine.

how about 5.3? i experienced the same problem on an upgrade.
keep smiling, they'll always wonder what your up too.....

nazerine

Quote from: Illori on May 15, 2017, 11:00:45 AM
we do not require php 7. php 5.4.* should be fine.

From my experience this morning, 5.3 is not compatible. Moving to 5.6 fixed error "./Sources/Load.php on line 142"

Now I encounter this error: "The database value you're trying to insert does not exist: theme_guests"

Rolled back to previous version of "./Sources/Load.php" and my forum is now loading again

vbgamer45

saws I would really recommend upgrading php version it is pretty easy for a hosting provider to do. 5.3 came out of service on 14 Aug 2014
Try to go up to 5.6 your forum will get speed improvements too the higher you go up in your php version
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Illori

the readme says SMF 2.0.14 requires php 5.3 or higher, it does not state which exactly version of php 5.3.

Arantor

Quote from: Illori on May 15, 2017, 11:17:07 AM
the readme says SMF 2.0.14 requires php 5.3 or higher, it does not state which exactly version of php 5.3.

5.3.0 through 5.3.29 are bug fixes, it shouldn't matter.

Saftek

Yeah, I upgraded to php 5.4 (from 5.3) and it appears to have resolved my issue.

vbgamer45

Good to know.  Now time to wonder what change caused that issue to work.

If one reads this upgrade up from PHP 5.3
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Saftek

Quote from: vbgamer45 on May 15, 2017, 12:10:24 PM
Good to know.  Now time to wonder what change caused that issue to work.

If one reads this upgrade up from PHP 5.3

don't know but that was the only change I made.

Advertisement: