Applicable to:
- Web Presence Builder for Linux
Symptoms
-
The redirect_url options in
/usr/local/sb/config
do not work:- unauthorized_access_redirect_url
- session_expired_redirect_url
- removed_site_redirect_url
- The following error may appear in Presence Builder interface when session in browser expires:
CONFIG_TEXT: Unable to connect to Web Presence Builder server. Please contact the server administrator.
-
The following error can be found in
/var/log/httpd/sitebuilder_error.log.ssl
:CONFIG_TEXT: [Tue Jan 01 04:39:00 2018] [warn] [client 192.0.2.2] mod_fcgid: stderr: PHP Fatal error: Call to a member function setStreamContext() on a non-object in /usr/local/sb/include/SB/ErrorsReport.php on line 51, referer: https://sitebuilder.example.wpb.tld/Editor
Cause
This is a bug with ID #PPB-4565.
Resolution
There are 2 workarounds for the issue.
Workaround 1.
- Connect to the server with SSH
- Add the following line to
[internal]
section in/usr/local/sb/config
:CONFIG_TEXT: [internal]
...
send_errors = false
Workaround 2.
-
Connect to the server with SSH
- Back up /usr/local/sb/include/Zend/Http/Client.php:
# cp /usr/local/sb/include/Zend/Http/Client.php{,.orig}
-
Download the attached file
Client.tar.gz
to your server:# cd /tmp && wget https://support.plesk.com/hc/en-us/article_attachments/360005115934/Client.tar.gz
-
Extract the downloaded file:
# tar -xvf Client.tar.gz
-
Replace the original file
Client.php
file with the extracted one and set correct file permissions:# mv /tmp/Client.php /usr/local/sb/include/Zend/Http/Client.php && chmod 755 /usr/local/sb/include/Zend/Http/Client.php
Comments
0 comments
Please sign in to leave a comment.