Sperber Posted January 11, 2017 Report Share Posted January 11, 2017 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 Quote Link to comment Share on other sites More sharing options...
Ian Posted January 18, 2017 Report Share Posted January 18, 2017 Never heard this before. Adsense runs fine here on PHP7.0.x combined with Revive 4. (Note that I did spot incompatibilities with PHP7.1) Quote Link to comment Share on other sites More sharing options...
Sperber Posted January 18, 2017 Author Report Share Posted January 18, 2017 Mhm.. . Any ideas where these blank pages evolve from? Or how to fix this? Quote Link to comment Share on other sites More sharing options...
Ian Posted January 18, 2017 Report Share Posted January 18, 2017 Try checking your PHP error log, and see if there is anything noticeable in there. Quote Link to comment Share on other sites More sharing options...
Sperber Posted April 12, 2017 Author Report Share Posted April 12, 2017 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. Quote Link to comment Share on other sites More sharing options...
Ian Posted April 12, 2017 Report Share Posted April 12, 2017 Which PHP version do you use? If you use 7.1.x I recommend downgrading to 7.0.x Quote Link to comment Share on other sites More sharing options...
Sperber Posted April 12, 2017 Author Report Share Posted April 12, 2017 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? Quote Link to comment Share on other sites More sharing options...
Erik Geurts Posted April 17, 2017 Report Share Posted April 17, 2017 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 Quote Link to comment Share on other sites More sharing options...
Matteo Beccati Posted April 18, 2017 Report Share Posted April 18, 2017 @Sperber Please upgrade to the latest version. The issue has been fixed in 4.0.1. Sperber 1 Quote Link to comment Share on other sites More sharing options...
shirazsun Posted April 18, 2017 Report Share Posted April 18, 2017 5 hours ago, Matteo Beccati said: @Sperber Please upgrade to the latest version. The issue has been fixed in 4.0.1. I also had this problem but when i upgrade 4.0.1 its fixed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.