Blank website after moving to PHP7.1

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
hdriezenlive
New Member
New Member
Posts: 8
Joined: Tue Oct 09, 2018 3:35 pm

Blank website after moving to PHP7.1

Post by hdriezenlive »

Good morning,

I'm moving a couple of websites from 1.12.1 to 2.2.8 to make them PHP7 ready, because my hoster is moving to PHP7.1 shortly. Two websites are fine now, one however gets blank after moving to PHP7.1. The error-log shows this:

Code: Select all

[Fri Oct 12 00:04:01.056851 2018] [php7:emerg] [pid 4737] [client 2a02:a446:7c20:1:59e6:41c0:f79b:e0a:32802] PHP Parse error:  syntax error, unexpected end of file in /home/public/sites/www.mywebsite.nl/lib/classes/class.usertagoperations.inc.php(305) : eval()'d code on line 40.
There seems to be nothing wrong with this particular file.

I have cleared the cache, through the CMS as well as by emptying the tmp/cache and tmp/templates_c directories. That does not make any change.

Any ideas?
Thanks

Hans

Below is the system info

Code: Select all



----------------------------------------------

Cms Version: 2.2.8

Installed Modules:

    AdminSearch: 1.0.4
    CGExtensions: 1.61.2
    CMSContentManager: 1.1.6
    CMSMailer: 6.2.14
    CmsJobManager: 0.1.3
    DesignManager: 1.1.4
    FileManager: 1.6.7
    FilePicker: 1.0.3
    FormBuilder: 0.8.1.6
    MenuManager: 1.50.3
    MicroTiny: 2.2.2
    ModuleManager: 2.1.4
    Navigator: 1.0.9
    News: 2.51.4
    Search: 1.51.5
    ThemeManager: 1.1.8


Config Information:

    php_memory_limit:
    max_upload_size: 32000000
    url_rewriting: mod_rewrite
    page_extension:
    query_var: page
    auto_alias_content: true
    locale:
    set_names: true
    timezone: Europe/Amsterdam
    permissive_smarty: false


Php Information:

    phpversion: 5.6.37-1+0~20180725093819.2+stretch~1.gbp606419
    md5_function: Aan (Waar)
    json_function: Aan (Waar)
    gd_version: 2
    tempnam_function: Aan (Waar)
    magic_quotes_runtime: Uit (Onwaar)
    E_ALL: 22527
    E_STRICT: 0
    E_DEPRECATED: 0
    test_file_timedifference: Geen tijdsverschillen gevonden
    test_db_timedifference: Geen tijdsverschillen gevonden
    create_dir_and_file: 1
    memory_limit: 128M
    max_execution_time: 30
    register_globals: Uit (Onwaar)
    output_buffering: 4096
    disable_functions: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority,
    open_basedir:
    test_remote_url: Succes
    file_uploads: Aan (Waar)
    post_max_size: 32M
    upload_max_filesize: 32M
    session_save_path: /home/public/tmp (0755)
    session_use_cookies: Aan (Waar)
    xml_function: Aan (Waar)
    xmlreader_class: Aan (Waar)
    check_ini_set: Aan (Waar)
    curl: Aan


Performance Information:

    allow_browser_cache: Uit (Onwaar)
    browser_cache_expiry: 60
    php_opcache: Aan (Waar)
    smarty_cache: Uit (Onwaar)
    smarty_compilecheck: Uit (Onwaar)
    auto_clear_cache_age: Uit (Onwaar)

Server Information:

    Server Software: Apache
    Server Api: apache2handler
    Server Os: Linux 4.9.0-6-amd64 Aan x86_64
    Server Db Type: MySQL (mysqli)
    Server Db Version: 10.2.12
    Server Db Grants: Kan geen geldige "GRAND ALL" permissie vinden. Dit kan problemen opleveren bij het installeren of verwijderen van modules. Of zelfs bij het toevoegen of verwijderen van items, zoals pagina's.


Permission Information:

    tmp: /public/sites/www.mywebsite.nl/tmp (0755)
    tmp_cache: /public/sites/www.mywebsite.nl/tmp/cache (0755)
    templates_c: /public/sites/www.mywebsite.nl/tmp/templates_c (0755)
    modules: /public/sites/www.mywebsite.nl/modules (0755)
    uploads: /public/sites/www.mywebsite.nl/uploads (0755)
    Bestandscreatiemasker (umask): /public/sites/www.mywebsite.nl/tmp/cache (0755)
    config_file: 0444

----------------------------------------------

User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1619
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Blank website after moving to PHP7.1

Post by DIGI3 »

It's most likely something in the page template - try switching to a default one or something very simple. If it works with those, then look for any UDTs or custom tags in your template. Comment out as many tags as you can until the error goes away, then narrow it down.
Not getting the answer you need? CMSMS support options
hdriezenlive
New Member
New Member
Posts: 8
Joined: Tue Oct 09, 2018 3:35 pm

Re: Blank website after moving to PHP7.1

Post by hdriezenlive »

Thanks for your reply.

I have tried the minimal template, but the problem persists.

Looking further, I think it might have to do with a very, very old instance of FCKeditorX, which is still installed. It cannot be removed in 2.2.8 (yet again a blank screen), error log is below.

Code: Select all

[Thu Oct 11 15:06:11.360959 2018] [:error] [pid 6569] [client 2a02:a446:7c20:1:d2f:6203:924d:5b97:19646] PHP Fatal error:  Call to a member function GetDb() on null in /home/public/sites/www.website.nl/modules/FCKeditorX/method.uninstall.php on line 7, referer: https://www.website.nl/
FCKeditorX can be removed in version 1.12, but then the upgrade to 2.2.8 seems to break: the website stays blank after the upgrade. Error log is below (I know it is quite big)

Code: Select all

[Fri Oct 12 17:05:36.555043 2018] [:error] [pid 3956] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:33086] PHP Fatal error:  Class 'AdminTheme' not found in /home/public/sites/test.website.nl/admin/themes/default/defaultTheme.php on line 19
[Fri Oct 12 17:32:25.370055 2018] [:error] [pid 7924] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:59164] PHP Warning:  include(/public/sites/www.website.nl/plugins/function.anchor.php): failed to open stream: Bestand of map bestaat niet in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 22
[Fri Oct 12 17:32:25.370158 2018] [:error] [pid 7924] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:59164] PHP Warning:  include(): Failed opening '/public/sites/www.website.nl/plugins/function.anchor.php' for inclusion (include_path='.:/usr/share/php') in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 22
[Fri Oct 12 17:32:25.370313 2018] [:error] [pid 7924] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:59164] PHP Warning:  include(/public/sites/www.website.nl/plugins/function.menu.php): failed to open stream: Bestand of map bestaat niet in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 24
[Fri Oct 12 17:32:25.370321 2018] [:error] [pid 7924] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:59164] PHP Warning:  include(): Failed opening '/public/sites/www.website.nl/plugins/function.menu.php' for inclusion (include_path='.:/usr/share/php') in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 24
[Fri Oct 12 17:32:25.370331 2018] [:error] [pid 7924] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:59164] PHP Warning:  include(/public/sites/www.website.nl/plugins/function.global_content.php): failed to open stream: Bestand of map bestaat niet in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 25
[Fri Oct 12 17:32:25.370336 2018] [:error] [pid 7924] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:59164] PHP Warning:  include(): Failed opening '/public/sites/www.website.nl/plugins/function.global_content.php' for inclusion (include_path='.:/usr/share/php') in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 25
[Fri Oct 12 17:32:25.370340 2018] [:error] [pid 7924] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:59164] PHP Fatal error:  Call to undefined function smarty_function_anchor() in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 32
[Fri Oct 12 17:33:34.501153 2018] [:error] [pid 7918] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:29682] PHP Warning:  include(/public/sites/www.website.nl/plugins/function.anchor.php): failed to open stream: Bestand of map bestaat niet in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 22
[Fri Oct 12 17:33:34.501184 2018] [:error] [pid 7918] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:29682] PHP Warning:  include(): Failed opening '/public/sites/www.website.nl/plugins/function.anchor.php' for inclusion (include_path='.:/usr/share/php') in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 22
[Fri Oct 12 17:33:34.501359 2018] [:error] [pid 7918] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:29682] PHP Warning:  include(/public/sites/www.website.nl/plugins/function.menu.php): failed to open stream: Bestand of map bestaat niet in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 24
[Fri Oct 12 17:33:34.501369 2018] [:error] [pid 7918] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:29682] PHP Warning:  include(): Failed opening '/public/sites/www.website.nl/plugins/function.menu.php' for inclusion (include_path='.:/usr/share/php') in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 24
[Fri Oct 12 17:33:34.501383 2018] [:error] [pid 7918] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:29682] PHP Warning:  include(/public/sites/www.website.nl/plugins/function.global_content.php): failed to open stream: Bestand of map bestaat niet in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 25
[Fri Oct 12 17:33:34.501396 2018] [:error] [pid 7918] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:29682] PHP Warning:  include(): Failed opening '/public/sites/www.website.nl/plugins/function.global_content.php' for inclusion (include_path='.:/usr/share/php') in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 25
[Fri Oct 12 17:33:34.501401 2018] [:error] [pid 7918] [client 2a02:a446:7c20:1:3978:ba31:87ee:8806:29682] PHP Fatal error:  Call to undefined function smarty_function_anchor() in /home/public/sites/test.website.nl/tmp/templates_c/b71f7ee015ec99e80fe2c1926e3e69de9a04c0ff.tpl_body.17.php on line 32
Any other suggestions?

Regards,

Hans
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1619
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Blank website after moving to PHP7.1

Post by DIGI3 »

For future reference, you can always remove a module just by deleting or renaming its folder inside /modules.

For your current issue, look at the most recent fatal error and work your way back, ignore the warnings:
Call to undefined function smarty_function_anchor()

I would guess this is a tag in your template that is no longer valid, or you have the case wrong (older versions were more forgiving with Smarty errors). Look for {anchor} or something similar in your template for the page(s) not working.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”