Demo RevMax Plugin for OpenX

Questions about openx adserver plugin RevMax?

RevMax OpenX Plugin Features

Author Topic: Syntax error on line 555 of advertisers.php  (Read 214 times)

Offline varka

  • Newbie
  • *
  • Posts: 2
Syntax error on line 555 of advertisers.php
« on: November 20, 2011, 03:49:42 PM »
Hello,

I'm receiving the following error when trying to visit advertisers.php for the first time:

Parse error: syntax error, unexpected $end in /home/ads/clients/advertisers.php on line 555

I've extracted the clients.zip as per the instructions, and no other files have been modified.

I'm using OpenX 2.8.8 with RevMax 4.0.3-pr2.

Any suggestions?

Thanks

Offline varka

  • Newbie
  • *
  • Posts: 2
Re: Syntax error on line 555 of advertisers.php
« Reply #1 on: November 20, 2011, 04:00:27 PM »
I think I found the reason for the bug. It would seem the RevMax script uses a mix of short <? and long <?php open tags, which mysteriously spits out a syntax error when short tags are off (the default for PHP installations).

The line that causes the problem is:

Line 433 - <?}?>


I fixed this problem by changing it to:

Line 433 - <?php } ?>

Hope this helps somebody!

Offline btdsoft

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • btdsoft.com Independant OpenX Consultant
    • btdsoft.com
Re: Syntax error on line 555 of advertisers.php
« Reply #2 on: November 20, 2011, 09:08:01 PM »
I think I found the reason for the bug. It would seem the RevMax script uses a mix of short <? and long <?php open tags, which mysteriously spits out a syntax error when short tags are off (the default for PHP installations).

The line that causes the problem is:

Line 433 - <?}?>


I fixed this problem by changing it to:

Line 433 - <?php } ?>

Hope this helps somebody!

Glad you got that sorted out.

Advertisers and publishers signup pages are unencrypted signup forms to be used in the design of your site. Not that it forgives the error on your tight server config, and my loose scripting, however it is expected the user will open it up and modify it for their needs.

In my file modification date 05/19/2011 its on line 429. Not sure what the difference is.