PDA

View Full Version : Pages not displaying, take 2


nsipartners
05-02-2007, 01:48 PM
Hey all,
I had this problem before with 2.0 and Sergey fixed it ( http://www.esyndicat.com/forum/about9348.html ) but now that I upgraded to 2.1.03 it's back, and Sergey's fix doesn't work. None of my pages (except for the news) are displaying.
The site is at (link removed) on a server running PHP 5.0.5.
Thanks!

Dave Baker
05-02-2007, 06:20 PM
Hello nsipartners,
Did you try Sersey's solution (http://www.esyndicat.com/forum/about9348.html post # 10)?

nsipartners
05-03-2007, 02:15 AM
Yes, Dave, I did. His changes are in fact already present in the 2.1 code. Any ideas?

Sergey Ten
05-03-2007, 03:57 AM
Hello nsipartners,

Please send me your FTP details and I will check that. Thanks.

nsipartners
05-04-2007, 01:04 AM
Hello Sergey, sent.

Sergey Ten
05-04-2007, 04:10 AM
Hello nsipartners,

Your problem has been :fixed: :) Please check that.

nsipartners
05-04-2007, 04:29 PM
Hi Sergey,

I tested everything, and the About Us, Terms Of Use, Privacy Policy, News, Advertise With Us, and Help pages all work now, but the Tell a Friend and Contact Us pages do not, and neither does the listing submission result page (I do a test submission and get the same error as the other pages). :( Each of those 3 pages now give a "Fatal error: Only variables can be passed by reference..." error.

Could you take another look and see what the problem is with those pages? Thanks!

Also, if you could post the fix code for both errors I'd appreciate it.

Sergey Ten
05-05-2007, 04:42 AM
Hello nsipartners,

I have fixed these pages, check it now.

The fix:

#1 Tell a Friend

[ Open tell-friend.php ]
[ Find code ]


$gDirSmarty->assign_by_ref('menu', $gDirLayout->print_menu());


[ Replace with ]


$menu = $gDirLayout->print_menu();
$gDirSmarty->assign_by_ref('menu', $menu);


#2 Contact us

[ Open contacts.php ]
[ Find code ]


$gDirSmarty->assign_by_ref('menu', $gDirLayout->print_menu());


[ Replace with ]


$menu = $gDirLayout->print_menu();
$gDirSmarty->assign_by_ref('menu', $menu);


#3 Suggest link

[ Open suggest-link.php ]
[ Find code ]


$gDirSmarty->assign_by_ref('link', array_map("stripslashes", $tmp));


[ Replace with ]


$tmp = array_map("stripslashes", $tmp);
$gDirSmarty->assign_by_ref('link', $tmp);


That's all.

nsipartners
05-06-2007, 07:47 PM
Excellent! Thank you very much. If you could post the code that fixed the first problem with the pages I'd appreciate it.

Sergey Ten
05-07-2007, 05:59 AM
Hello nsipartners,

I have applied such instructions:
http://www.esyndicat.com/forum/post61161-10.html