Recent posts

#81
EhPortal Support / Re: Portal not reverting back ...
Last post by deansmar - March 27, 2026, 07:33:57 PM
Yes this happens on the default theme as well, it happens on any theme..

It's a Manuel edit in the subs.php

With the 1.39.8 portal installed all the menu buttons are there..
#82
Site Discussion / Re: Site's slow to connect
Last post by Chen Zhen - March 27, 2026, 07:11:40 PM
My firewall is blocking the use of any VPN or online proxy..
I might try a plug-in but in a browser that I don't normally use because I don't like 3rd party stuff filtering sensitive data (ie. bank, government sites, etc.).

Here is a stackoverflow link that more or less contains the same information:
https://stackoverflow.com/questions/25801695/apache-2-4-php-fpm-catching-error-pages
#83
Site Discussion / Re: Site's slow to connect
Last post by Chen Zhen - March 27, 2026, 07:00:11 PM
IMO it's strange behavior.. perhaps something to do with region restrictions?
If you're curious, you can try using a proxy or VPN that spoofs a Canadian IP to see if it works.
This has got me curious.. I may try spoofing the US or UK to see if it doesn't work.
#84
EhPortal Support / Re: Portal not reverting back ...
Last post by Chen Zhen - March 27, 2026, 06:51:38 PM

I will look into what was reported.
Does this behavior occur on the default theme?
Are you using a mod to add buttons to the task bar or is it manual edits to Subs.php ?
#85
EhPortal Support / Re: Portal not reverting back ...
Last post by deansmar - March 27, 2026, 01:42:17 PM
somthing else that i have noticed...

the changes that were made in the Sub.php for my Menu..

i have added a few other menu buttons and subbottons..

these do not appear any more..

so i gues there is a Portal.php or a "hook" that takes over the Main Menu out of the sub.php

could someone point me in the right direction pleaseee..  :)
#86
EhPortal Support / Portal not reverting back to P...
Last post by deansmar - March 26, 2026, 09:02:13 AM
one thing i have noticed..  is that when you Login..

noramly in the past.. after logging in or logging out, the site returns back to the home page (Portal)
or if no portal installed then the forum index is shown..

since i updated to SMF 2.1.7 and Portal 1.40.2

when logging in, the index remains blank, does not show the Portal or the forum

when loging out, the homepage of the forum appears and not the Portal.
#87
Site Discussion / Re: Site's slow to connect
Last post by Dave - March 26, 2026, 03:39:34 AM
It did the same for me too

Something went wrong and an AI response wasn't generated.
#88
Site Discussion / Re: Site's slow to connect
Last post by Chen Zhen - March 25, 2026, 11:29:22 PM
That's odd because the link works fine for me.

Just use the google search engine and type "php-fpm ProxyErrorOverride on" in the search input.
It should bring up the AI response which you can click on.

Assuming you are using PHP-FPM...
The example shown has a generic path for the socket, you'll have to find where the "SetHandler" line is in your Apache config file and add "ProxyErrorOverride On" after it. There is a second option below it for adding a condition instead which I will try if the first example causes any problems.
#89
Site Discussion / Re: Site's slow to connect
Last post by Skhilled - March 25, 2026, 06:07:22 PM
Quote from: Chen Zhen on March 21, 2026, 12:04:41 AMThe session fix seems to be working good now and the other thing you reported in the shoutbox seems to be from some sort of brute force bot attack.

It seems my site was targeted by some sort of script that bombards the server with querying files (non-existent) that was forcing PHP-FPM to handle the errors which was overwhelming it. 2 IP's were mostly involved so I blocked them but that won't stop it from happening again.

I didn't realize until I looked into it that it's best to configure Apache to handle those type of errors instead of leaving it up to PHP. I had to make some adjustments in my Apache configuration file.

ref. php-fpm ProxyErrorOverride on

I also added a custom error page while I was at it.
At one time I used to have an assortment of custom error pages but must have neglected to include them at some point.

When I click that link I get:

QuoteSomething went wrong and an AI response wasn't generated.

Even when I'm logged in I get the same.
#90
Site Discussion / Re: Site's slow to connect
Last post by Dave - March 21, 2026, 03:13:31 AM
Thanks for the info. At you know now I wasn't seeing things  ;)