Trouble setting $g_path

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
WWY
Posts: 15
Joined: 13 Oct 2023, 15:43

Trouble setting $g_path

Post by WWY »

Since my recent upgrade I get the warning "Warning: "path" was not defined in config_inc.php." Found a discussion about it here:
viewtopic.php?p=76293
But when I add $g_path='https://our_website/manitsbt/' in config/config_inc.php I get a blank page (doesn't render).

Instructions say to keep trailing backslash. Removing it produces the same result. Removing the "blank" value from config_defaults_inc.php and leaving it in config/config_inc.php does the same. I also tried HTTP, no "S" and same result.

What's the correct way of getting rid of the warning?
cas
Posts: 1624
Joined: 11 Mar 2006, 16:08
Contact:

Re: Trouble setting $g_path

Post by cas »

What happens if you do not set this variable or just

Code: Select all

$g_path= "";
atrol
Site Admin
Posts: 8379
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Trouble setting $g_path

Post by atrol »

When getting a blank page, first check web server and PHP error logs.
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8379
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Trouble setting $g_path

Post by atrol »

WWY wrote: 04 Apr 2024, 18:48 But when I add $g_path='https://our_website/manitsbt/' in config/config_inc.php I get a blank page (doesn't render).
manitsbt?
Typo?
Please use Search before posting and read the Manual
WWY
Posts: 15
Joined: 13 Oct 2023, 15:43

Re: Trouble setting $g_path

Post by WWY »

Typo in the post, not the config file. I just looked 'cause god knows I've made my share of mistakes.
WWY
Posts: 15
Joined: 13 Oct 2023, 15:43

Re: Trouble setting $g_path

Post by WWY »

OMG! UBD (user brain dead) DON'T FORGET TO TERMINATE THE LINE WITH A SEMI-COLON. YA KNOW? LIKE EVERY OTHER LINE IN THE FILE!

Thanks all for the help. Apologies for the idiocy.
Post Reply