Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: camman502 on June 30, 2018, 05:40:35 PM

Title: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: camman502 on June 30, 2018, 05:40:35 PM
Hi there!

I've been having this error for months and I cannot seem to figure it out

I've swapped from PHP 5.4 PHP 5.6 PHP 7.0 and nothing fixed it so I do not think its a version issue.

I've tried to edit the code to what it says and it wouldn't work.

Link to the page with the issue: http://www.texashotboats.com/gallery/

error: Fatal error: Function name must be a string in /home8/texasho2/public_html/forums/Sources/Load.php on line 382

And I've included my load.php

Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: shawnb61 on June 30, 2018, 07:18:29 PM
This is usually caused by your php version.   

Did it start with the 2.0.14/2.0.15 patches?

What version of php is reported under Admin | Support and Credits?

2.0.14+ requires php 5.4+.  That is almost always the source of those errors.
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: vbgamer45 on June 30, 2018, 07:35:04 PM
I would say it is probably something in the gallery folder. or gallery intergration code is not updated.
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: camman502 on June 30, 2018, 08:30:54 PM
Quote from: shawnb61 on June 30, 2018, 07:18:29 PM
This is usually caused by your php version.   

Did it start with the 2.0.14/2.0.15 patches?

What version of php is reported under Admin | Support and Credits?

2.0.14+ requires php 5.4+.  That is almost always the source of those errors.

PHP: 5.4.43
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: camman502 on June 30, 2018, 08:31:19 PM
Quote from: vbgamer45 on June 30, 2018, 07:35:04 PM
I would say it is probably something in the gallery folder. or gallery intergration code is not updated.

How would i go about fixing that..?
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: vbgamer45 on June 30, 2018, 09:47:08 PM
Can you attach the gallery folders index.php I just want to see what gallery it is.
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: camman502 on June 30, 2018, 10:00:46 PM
Quote from: vbgamer45 on June 30, 2018, 09:47:08 PM
Can you attach the gallery folders index.php I just want to see what gallery it is.
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: vbgamer45 on June 30, 2018, 10:13:54 PM
You have update your version of coppermine that version does not work with PHP7
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: camman502 on June 30, 2018, 10:41:00 PM
Quote from: vbgamer45 on June 30, 2018, 10:13:54 PM
You have update your version of coppermine that version does not work with PHP7

I believe i updated it and now i just get "Fatal error :"
Title: Re: Fatal error: Function name must be a string in /../Sources/Load.php
Post by: vbgamer45 on June 30, 2018, 10:43:37 PM
Might have to check with coppermine or smf integration topic for help