Page 1 of 1

Trouble setting $g_path

Posted: 04 Apr 2024, 18:48
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?

Re: Trouble setting $g_path

Posted: 05 Apr 2024, 07:36
by cas
What happens if you do not set this variable or just

Code: Select all

$g_path= "";

Re: Trouble setting $g_path

Posted: 05 Apr 2024, 07:41
by atrol
When getting a blank page, first check web server and PHP error logs.

Re: Trouble setting $g_path

Posted: 05 Apr 2024, 07:42
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?

Re: Trouble setting $g_path

Posted: 05 Apr 2024, 12:47
by WWY
Typo in the post, not the config file. I just looked 'cause god knows I've made my share of mistakes.

Re: Trouble setting $g_path

Posted: 11 Apr 2024, 20:17
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.