Demo RevMax Plugin for OpenX

Questions about openx adserver plugin RevMax?

RevMax OpenX Plugin Features

Author Topic: Blank page error on Windows servers  (Read 695 times)

Offline TheShadow

  • Newbie
  • *
  • Posts: 2
Blank page error on Windows servers
« on: May 19, 2011, 04:21:25 PM »
As Mike will probably remember we have had an email exchange regarding the advertiser signup page on a Windows server not being displayed, although there was no obvious PHP error that should cause it.

After a month of other activity I came across the same error elsewhere and got to dig in to the error again.

Then I came across this article which solved the problem once and for all.

For those who do not like to click through:
The error is caused by the code using the <? tag instead of the <?php which is accepted on most linux installations but not always on a custom PHP as most Windows servers are.
Solution (other than letting the developers clean up the inconsistent code) is to use
Code: [Select]
short_open_tag = Onin the php.ini file.

I am off to try getting advertisers, hopefully this will help others at some time.

Offline btdsoft

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • btdsoft.com Independant OpenX Consultant
    • btdsoft.com
Re: Blank page error on Windows servers
« Reply #1 on: May 19, 2011, 05:51:08 PM »
As Mike will probably remember we have had an email exchange regarding the advertiser signup page on a Windows server not being displayed, although there was no obvious PHP error that should cause it.

After a month of other activity I came across the same error elsewhere and got to dig in to the error again.

Then I came across this article which solved the problem once and for all.

For those who do not like to click through:
The error is caused by the code using the <? tag instead of the <?php which is accepted on most linux installations but not always on a custom PHP as most Windows servers are.
Solution (other than letting the developers clean up the inconsistent code) is to use
Code: [Select]
short_open_tag = Onin the php.ini file.

I am off to try getting advertisers, hopefully this will help others at some time.

Ah Ha!
I am so glad you got it sorted out. It would of went faster if I could
have gotten to a error log somewhere on that box.

That was only affecting advertisers.php correct ?
Was the short tag within it or in a included file somewhere ?

I would appreciate that info if you have it and I do appreciate and thank you for coming back and letting me know what the problem was.

Hopefully I can track this down so it wont become a hassle for some one else in the future.

Thanks again
Mike

Offline TheShadow

  • Newbie
  • *
  • Posts: 2
Re: Blank page error on Windows servers
« Reply #2 on: May 20, 2011, 02:49:51 AM »
I only got the problem in advertisers.php.
Line 437 and 448 may need to be adapted, however by the php.ini change the error is solved.

I had to switch the PHP error reporting to development to get a $end error, it was not logged in any way earlier which is why it gave so much trouble.

After the time you already put in to it the least I could do was mention the solution.

Offline btdsoft

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • btdsoft.com Independant OpenX Consultant
    • btdsoft.com
Re: Blank page error on Windows servers
« Reply #3 on: May 20, 2011, 04:40:35 AM »
I only got the problem in advertisers.php.
Line 437 and 448 may need to be adapted, however by the php.ini change the error is solved.

I had to switch the PHP error reporting to development to get a $end error, it was not logged in any way earlier which is why it gave so much trouble.

After the time you already put in to it the least I could do was mention the solution.


Thanks again,

For others that may experience simular blank page problems:
Other culprits may be ioncube loaders not installed and
incorrect file permissions.

Generated errors can usually be found in your servers error log files
to help pin down the exact cause.