Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank page suddenly after no changes recently. #4524

Closed
mgaulton opened this issue Jun 28, 2021 · 4 comments
Closed

Blank page suddenly after no changes recently. #4524

mgaulton opened this issue Jun 28, 2021 · 4 comments
Assignees
Labels
status: invalid This issue cannot be confirmed, is not a defect, or was opened erroneously. type: bug A problem that should not be happening

Comments

@mgaulton
Copy link

mgaulton commented Jun 28, 2021

Bug Description

Blank page is returned for some users.
I have 2 of us that get the correct page but everyone else is getting a blank page.

How to Reproduce

Steps to reproduce the behavior:
load https://brgc.ca

Expected Behavior

Webpage should come up for all users.

Screenshots

If applicable, add screenshots to help explain your problem.

Server Information

hosted
Apache Version | 2.4.48
PHP Version | 7.2.34
MySQL Version | 5.7.34
Architecture | x86_64
Operating System | linux

PHP Operating System

Linux hp318.servername.online 3.10.0-962.3.2.lve1.5.42.el7.x86_64 #1 SMP Mon Nov 9 08:11:18 EST 2020 x86_64

PHP Version

PHP Version 7.4.20

PHP Modules

bcmath
bz2
calendar
Core
ctype
curl
date
dom
eio
enchant
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
i360
iconv
imagick
imap
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
yaml
Zend OPcache
zip
zlib

Client Information

Working
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36

Additional Information

2 plugins were added on jun 18, not touched since, issues reported Sunday night.

This is the only significant error.
[23-Jun-2021 06:43:59 America/Toronto] PHP Fatal error: Uncaught Error: Call to a member function setTitle() on null in /home/brgcc690/public_html/e107_handlers/error_page_class.php:247
Stack trace:
#0 /home/brgcc690/public_html/error.php(65): error_page->render(403)
#1 /home/brgcc690/public_html/error.php(46): error_front->renderErrorPage()
#2 /home/brgcc690/public_html/error.php(88): error_front->__construct()
#3 {main}
thrown in /home/brgcc690/public_html/e107_handlers/error_page_class.php on line 247
[27-Jun-2021 15:46:29 America/Toronto] PHP Fatal error: Uncaught PDOException: SQLSTATE[42000] [1203] User brgcc690_e107brg already has more than 'max_user_connections' active connections in /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php:2761
Stack trace:
#0 /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php(324): e_db_pdo->_getMySQLaccess()
#1 /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php(1532): e_db_pdo->db_Query('SELECT * FROM e...', NULL, 'db_Select_gen', false, '', '')
#2 /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php(621): e_db_pdo->gen('SELECT * FROM e...', false)
#3 /home/brgcc690/public_html/e107_handlers/sitelinks_class.php(1736): e_db_pdo->retrieve('SELECT * FROM #...', NULL)
#4 /home/brgcc690/public_html/e107_core/shortcodes/single/navigation.php(48): e_navigation->initData(1, 'main')
#5 /home/brgcc690/public_html/e107_handlers/shortcode_handler.php(1267): navigation_shortcode('main', '')
#6 [internal function]: e_parse_shortcode->doCode(Array)
#7 /home/brgcc690/public_html/e107_handlers/shortcode_handle in /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php on line 2761
[27-Jun-2021 15:46:29 America/Toronto] PHP Fatal error: Uncaught PDOException: SQLSTATE[42000] [1203] User brgcc690_e107brg already has more than 'max_user_connections' active connections in /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php:2761
Stack trace:
#0 /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php(324): e_db_pdo->_getMySQLaccess()
#1 /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php(1532): e_db_pdo->db_Query('SELECT * FROM e...', NULL, 'db_Select_gen', false, '', '')
#2 /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php(621): e_db_pdo->gen('SELECT * FROM e...', false)
#3 /home/brgcc690/public_html/e107_handlers/sitelinks_class.php(1736): e_db_pdo->retrieve('SELECT * FROM #...', NULL)
#4 /home/brgcc690/public_html/e107_core/shortcodes/single/navigation.php(48): e_navigation->initData(1, 'main')
#5 /home/brgcc690/public_html/e107_handlers/shortcode_handler.php(1267): navigation_shortcode('main', '')
#6 [internal function]: e_parse_shortcode->doCode(Array)
#7 /home/brgcc690/public_html/e107_handlers/shortcode_handle in /home/brgcc690/public_html/e107_handlers/e_db_pdo_class.php on line 2761
[28-Jun-2021 11:14:30 America/Toronto] PHP Fatal error: Uncaught Error: Call to a member function setTitle() on null in /home/brgcc690/public_html/e107_handlers/error_page_class.php:247
Stack trace:
#0 /home/brgcc690/public_html/error.php(65): error_page->render(403)
#1 /home/brgcc690/public_html/error.php(46): error_front->renderErrorPage()
#2 /home/brgcc690/public_html/error.php(88): error_front->__construct()
#3 {main}
thrown in /home/brgcc690/public_html/e107_handlers/error_page_class.php on line 247

@mgaulton mgaulton added the type: bug A problem that should not be happening label Jun 28, 2021
@Deltik
Copy link
Member

Deltik commented Jun 28, 2021

I noticed that your website https://brgc.ca is behind a CDN. If your web server is not mapping the X-Forwarded-For (or equivalent) header from the CDN as the client's true IP, it is possible for the CDN itself to get banned. Banned page views show up white without logging.

In this case, try removing your CDN's IPs from /home/brgcc690/public_html/e107_system/*/cache/banlist.php or deleting the file /home/brgcc690/public_html/e107_system/*/cache/banlist.php, where * is your site hash (a string that looks like 6de9d0d30a).

@Deltik Deltik self-assigned this Jun 28, 2021
@mgaulton
Copy link
Author

mgaulton commented Jun 28, 2021 via email

@Deltik
Copy link
Member

Deltik commented Jun 28, 2021

Your CDN should have instructions on how to set up your web server to accept or trust the proxied client IP information. This kind of setup is out of scope of e107, but I can provide insight into how e107 records IP addresses for flood control:

To figure out the client IP address, e107 takes the $_SERVER['REMOTE_ADDR'], which comes from the web server, except if X-Forwarded-For is provided as a header, e107 uses the last of the comma-delimited IPs in that header.


Alternatively, you can disable e107's anti-flood system in Admin Area » Preferences » Advanced Options » Security & Protection » Enable flood protection? and set it to "Off".

Admittedly, the flood protection and banning system is not very intuitive, as is evident from the sudden blank page your users experienced, so it might be worth turning off if it's a recurring issue.

@Deltik Deltik closed this as completed Jun 28, 2021
@Deltik Deltik added the status: invalid This issue cannot be confirmed, is not a defect, or was opened erroneously. label Jun 28, 2021
@mgaulton
Copy link
Author

mgaulton commented Jun 29, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid This issue cannot be confirmed, is not a defect, or was opened erroneously. type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

2 participants