e107help.org Q&A
0 like 0 dislike
Not sure if I should start another thread or apply to someone elses.

I am trying to get E107V2 running under PHP 7. The provider will phase-out php 5.6. The issue I have is that I get a blank screen. I can however, access the admin pages, so actually index.php results in a blank page. If I enter the admin section and clear cache then the site appears in the browser. But only once, next time it is blank again. I have cache set to off and on, tried different settings but the problem persists. If I clear cache I can see the homepage, but only once. Any hints? I'm using a theme from manatwork.

albert
e107 version github from around a month ago.
in Core by (215 points) 4 10 15
changed in answer

4 Answers

0 like 0 dislike
Last changes for compatability for php 7.1 were made around a month or so (during install blank page). SInce it is index php take a look at git index php (had a php 7.1 fix 12 days ago) maybe it helps you too ??
by (2.8k points) 3 6 7
0 like 0 dislike
I have uploaded the latest git to the site, changed php from 5.6 to 7 and could not get the welcome page visisble. I opened e107_admin and logged on, cleared cache and the welcome message appeared. Then I refreshed the browser and only the background image (in the body segment) appeared. So the issue persists.
by (215 points) 4 10 15
Sorry basic question as it is unknown: does it also happen using BS3 or another core theme?
This is most likely an older plugin which is not able to work on PHP 7 as it is using outdated code. Please check your plugins and disable those that you are not using.
0 like 0 dislike

I've updated my webserver today from php5.5 to php7. I have exatly the same behavior on some of the e107 sites. one is working and the others are not. if I clean the cache in the admin-area the site works, but only for one hit. I use BS3 theme and no additional plugins. all standard. update from 2.1.3 to 2.1.5 did not help. webserver log give me this error:
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to e_pref::loadData() must be of the type array, string given, called in e107_handlers/pref_class.php on line 475 and defined in e107_handlers/pref_class.php:417\nStack trace:\n#0 e107_handlers/pref_class.php(475): e_pref->loadData('', false)\n#1 e107_handlers/pref_class.php(450): e_pref->_load(false)\n#2 e107_handlers/pref_class.php(848): e_pref->load()\n#3 e107_handlers/e107_class.php(943): e_core_pref->__construct('emote', true)\n#4 e107_handlers/e_parse_class.php(5076): e107::getConfig('emote')\n#5 e107_handlers/e_parse_class.php(1800): e_emotefilter->__construct()\n#6 e107_core/shortcodes/batch/news_shortcodes.php(390): e_parse->toHTML('Prophecy', false, 'defs')\n#7 e107_handlers/shortcode_h in e107_handlers/pref_class.php on line 417

Any Hints?

by (10 points)
0 like 0 dislike
I deactivated the Emoticons and now it works. Must be a bug with emotes and php7.
by (10 points)

Hard to tell if it is emotes (hardly no issues known or reported). The only 'non' e107 thing i do see is your last line :

toHTML('Prophecy'    The word Prophecy is not from e107, so maybe something is wrong there (in its surroundings etc..) (likely a cat name from news item)

tgtje thanks for your answer. The issue has definitly something to do with the emotes. All the other sites that had the same problem exept one. And that one site, had emotes disabled. Also does it work now after deaktivation of emotes. All are standard e107 sites. Log from an other site:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to e_pref::loadData() must be of the type array, string given, called in e107_handlers/pref_class.php on line 474 and defined in e107_handlers/pref_class.php:416\nStack trace:\n#0 e107_handlers/pref_class.php(474): e_pref->loadData('', false)\n#1 e107_handlers/pref_class.php(449): e_pref->_load(false)\n#2 e107_handlers/pref_class.php(843): e_pref->load()\n#3 e107_handlers/e107_class.php(902): e_core_pref->__construct('emote', true)\n#4 e107_handlers/e_parse_class.php(4651): e107::getConfig('emote')\n#5 e107_handlers/e_parse_class.php(1768): e_emotefilter->__construct()\n#6 e107_handlers/sitelinks_class.php(1704): e_parse->toHTML('Home', false, 'defs')\n#7 e107_handlers/shortcode_handler.php(923): navigation_shortcodes->sc_link_name('', '')\n#8 [internal fu in e107_handlers/pref_class.php on line 416

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to e_pref::loadData() must be of the type array, string given, called in e107_handlers/pref_class.php on line 474 and defined in e107_handlers/pref_class.php:416\nStack trace:\n#0 e107_handlers/pref_class.php(474): e_pref->loadData('', false)\n#1 e107_handlers/pref_class.php(449): e_pref->_load(false)\n#2 e107_handlers/pref_class.php(843): e_pref->load()\n#3 e107_handlers/e107_class.php(902): e_core_pref->__construct('emote', true)\n#4 e107_handlers/e_parse_class.php(4651): e107::getConfig('emote')\n#5 e107_handlers/e_parse_class.php(1768): e_emotefilter->__construct()\n#6 e107_handlers/sitelinks_class.php(1704): e_parse->toHTML('Home', false, 'defs')\n#7 e107_handlers/shortcode_handler.php(923): navigation_shortcodes->sc_link_name('', '')\n#8 [internal fu in e107_handlers/pref_class.php on line 416, referer:

 

Thank you for the reply. I will take notice of this if more issues are posted ,( you may (if you like) post this as issue at Github https://github.com/e107inc/e107/issues so it will not be 'stuffed' away somewhere.

It would be nice (if you do so) to post your solution to it..

 

Tested localhost, fresh install, php 7.0.15, BS3 themes, default emoticons, using in chat. No problems.
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
806 questions
1,209 answers
2,093 comments
581 users