1
rudycash
mxdirectory blank page
  • 2008/3/6 16:13

  • rudycash

  • Just popping in

  • Posts: 70

  • Since: 2004/2/12


I'm using mxdirectory on a few sites without problems. However this morning

one of the sites displays a blank page instead of the mxdirectory index page.

I've turned on debugging and get this message.

Quote:
Parse error: syntax error, unexpected ';' in /home/finda/public_html/templates_c/default-obscene_v3_3c^%%4B^4B3^4B3E9984%%db%3Axdir_index.html.php on line 3
All errors (4) queries (124) blocks (9) extra (0) timers (6)
Errors
Notice: Undefined index: - in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined offset: 0 in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined index: - in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined offset: 0 in file /modules/mxdirectory/include/functions.php line 278


Any ideas. There is a similar post to this elsewhere but it didn't seem to include a solution.

2
zyspec
Re: mxdirectory blank page
  • 2008/3/6 23:22

  • zyspec

  • Module Developer

  • Posts: 1093

  • Since: 2004/9/21


In index.php you need to delete line 48
$xoopsTpl->register_postfilter('add_header');
and also delete lines 38-41
function add_header($tpl_source, &$xoopsTpl)
{
    return "<?php echo $xoops_module_header?>n".$tpl_source;
}


If you're using PHP5 then in ./class/coupon.php you'll want to change line 124 from:
if (get_class($coupon) != 'coupon') {

to:
if (get_class($coupon) != 'Coupon') {

Notice the capital 'C' in the right hand side of the equation.

3
rudycash
Re: mxdirectory blank page
  • 2008/3/7 9:54

  • rudycash

  • Just popping in

  • Posts: 70

  • Since: 2004/2/12


Great - I'll give it a go

4
rudycash
Re: mxdirectory blank page
  • 2008/3/7 10:01

  • rudycash

  • Just popping in

  • Posts: 70

  • Since: 2004/2/12


Fantastic - it worked. I just had to delete the files in templates_c as well.

Thanks very much for the help.

Login

Who's Online

53 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 53


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits