Jump to content

Blank pages in Banner pages after PHP 7.1 x upgrade


Sperber

Recommended Posts

Has anyone mentioned before, that - after an upgrade to the latest version - the Banner pages with javascript-code as ad-code are coming up as blank?

Our situation: we moved from dedicated hosting into the cloud, upgraded PHP from 5.x to 7.1.0, upgraded Revive Adserver to the latest version and since then everything is running fine for now over 2 weeks. Today I installed new geoip-files and wanted to test them on an AdSense-Banner - and that´s when I stumbled over the blank pages. It´s not only limited to AdSense-Code, even to Media.net and others who utilize javascript codes. The banner pages with static banners instead are working and I can alter them as usual.

As I don´t have an idea how to fix that, can you gimme an advice? Could that be, that Revive is somehow incompatble with PHP 7.x?

Regards,

Sperber

Link to comment
Share on other sites

  • 2 months later...
On 1/18/2017 at 8:04 PM, Ian van Marwijk said:

Try checking your PHP error log, and see if there is anything noticeable in there.

The error log shows this:

[Wed Apr 12 11:11:51.147917 2017] [proxy_fcgi:error] [pid 5734] [client 207.89.67.46:33966] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/vhosts/mydomain.com/httpdocs/1/lib/pear/HTML/QuickForm.php:602\nStack trace:\n#0 /var/www/vhosts/mydomain.com/httpdocs/1/lib/pear/HTML/QuickForm.php(568): HTML_QuickForm::_loadElement('createElement', 'select', Array)\n#1 /var/www/vhosts/mydomain.com/httpdocs/1/lib/OX/Extension/bannerTypeHtml/bannerTypeHtml.php(78): HTML_QuickForm::createElement('select', 'adserver', 'Alter HTML to e...', Array, Array)\n#2 /var/www/vhosts/mydomain.com/httpdocs/1/plugins/bannerTypeHtml/oxHtml/genericHtml.class.php(40): Plugins_BannerTypeHTML->buildForm(Object(OA_Admin_UI_Component_Form), Array)\n#3 /var/www/vhosts/mydomain.com/httpdocs/1/www/admin/banner-edit.php(517): Plugins_BannerTypeHTML_oxHtml_genericHtml->buildForm(Object(OA_Admin_UI_Component_Form), Array)\n#4 /var/www/vhosts/mydomain.com/httpdocs/1/www/admin/banner-edit.php(261): buildBannerForm('html', Array, Object(Plugins_BannerTypeHTML_oxHtml_genericHtml), false)\n#5 {main}\n  t...\n', referer: https://mydomain.com/1/www/admin/campaign-banners.php?clientid=3&campaignid=59

Would appreciate any help.

 

 

Link to comment
Share on other sites

1 hour ago, Ian van Marwijk said:

Which PHP version do you use? If you use 7.1.x I recommend downgrading to 7.0.x

Thanks Ian,

indeed that fixed the problem, as we had 7.1.3 running. Is it planned to update Revive to work with the latest PHP versions, since they have some features we would like to benefit from?

Link to comment
Share on other sites

On 4/12/2017 at 3:35 PM, Sperber said:

Thanks Ian,

indeed that fixed the problem, as we had 7.1.3 running. Is it planned to update Revive to work with the latest PHP versions, since they have some features we would like to benefit from?

Technical requirements for Revive Adserver v4.0.x are listed here: https://www.revive-adserver.com/support/requirements/

As you can see, PHP 7.1.x is not yet officially supported. I've opened an issue on Github for the developers to look into this, see https://github.com/revive-adserver/revive-adserver/issues/837

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...