Help with PHP error

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Cromer17
New to forums
New to forums
Posts: 2
Joined: Tue Mar 24, 2020 12:15 pm

Help with PHP error

Post by Cromer17 » Tue Mar 24, 2020 12:23 pm

Hi all,

I'm new at the forum but I have been using NFO since 2015 :)

I'm having my first problem with the server and I can't resolve it. Basically, I'm trying to install a software called "Dolibarr", maybe someone it's already using it here. After uploading all the files using the FTP and entering to my url I got a white site. If I go to the specific link for the installation I'm getting this error:

Fatal error: Uncaught Error: Call to a member function load() on null in /usr/www/X/public/uy/X/install/index.php:41 Stack trace: #0 {main} thrown in /usr/www/X/public/uy/X/install/index.php on line 41

According to that file, in that line it’s the following: “$langs->load(“admin”);”

I already checked the PHP version and it's not that the problem, this software works with PHP 5.5 - 7.4 and NFO it's running 7.2 so it's not that.

I asked to the community of Dolibarr and a mod told me the following:
"- Access rights: Could you check the user and chmod?
- File upload problem: How do you transfer the files?
- Php Open_base_dir restriction: What is your php configuration
Etc…
In any cases, you are the only one to report this kind of problem so, the problem is on your server."

And it's right, the problem it's on the server because I tried uploading the same files in the same way to other two hostings in two different companies and in both runs well.

Can anyone help me to figure this out? Thanks in advance.

Regards,

User avatar
Edge100x
Founder
Founder
Posts: 12425
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Help with PHP error

Post by Edge100x » Tue Mar 24, 2020 8:43 pm

That one's going to require digging into the code to find what's going on, I think. The error message doesn't say much, but from it and your description, it sounds like some sort of variable isn't being loaded up properly, which could mean that the the configuration file can't be read. As the mod indicated, you should check the permissions on that file and make sure that it can be read by your user.

We don't define or restrict open_basedir in any way, so that's not it, unless you're doing that on your end (it can be changed by users).

Cromer17
New to forums
New to forums
Posts: 2
Joined: Tue Mar 24, 2020 12:15 pm

Re: Help with PHP error

Post by Cromer17 » Wed Mar 25, 2020 10:07 am

Hi Edge, thank you for taking your time to read.

What permissions should I give to the files? 700? To all the files or to the specific folder where the file can't be read?

I'm pretty newbie with permissions.

Regards,

User avatar
Edge100x
Founder
Founder
Posts: 12425
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Help with PHP error

Post by Edge100x » Wed Mar 25, 2020 12:44 pm

I recommend using the permissions-setting tool on the "File manager" page of the control panel to make sure that they are set appropriately.

Post Reply