1
laguna
Blank page in smartfaq 1.08 running on PHP 5
  • 2007/10/29 1:47

  • laguna

  • Just popping in

  • Posts: 46

  • Since: 2004/10/9


Hello!

I have a problem with the smartfaq module

Blank page in: /smartfaq/open_index.php

Configuration of the server and my Web site:

PHP: 5.2.0
MySQL: 4.0.25-standard
XOOPS: 2.0.17.1 Final
Module version: SmartFAQ 1.08 Final

NOTE: The problem must to the PHP version? (running on 2.0.17 XOOPS same result!)

Thanks! (Excuse me bad english. )
Hi amigos!!!

2
hervet
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2007/10/31 17:43

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Can you see something when you activate the XOOPS Php debug's mode ?

3
laguna
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2007/11/2 19:26

  • laguna

  • Just popping in

  • Posts: 46

  • Since: 2004/10/9


The thrown error is the following:

Quote:
Fatal error: Cannot use object of type sfCategory as array in /home/vn000278/public_html/modules/smartfaq/open_index.php on line 167


Thanks for its interest
Hi amigos!!!

4
xavhmn
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2007/11/2 22:19

  • xavhmn

  • Just popping in

  • Posts: 23

  • Since: 2004/11/16


replace width this code:

$xoopsTpl->assign('xoops_pagetitle'$module_name ' - ' $category['name']);

5
laguna
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2007/11/4 14:16

  • laguna

  • Just popping in

  • Posts: 46

  • Since: 2004/10/9


Ok, thanks xavhmn for your interest. But, the code that you provide is equal to that already I have in open_inex.php

Therefore, even continuous throwing error
Hi amigos!!!

6
zyspec
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2007/11/4 17:26

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


laguna,

I believe what's throwing the error is trying to assign $category['name'] to the XOOPS template. '$category' is an object, not an array so PHP5 won't allow this...

I believe you will get past this error if you replace line 167 with:
$xoopsTpl->assign('xoops_pagetitle'$module_name ' - ' $category->getVar('name'));

7
laguna
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2007/11/5 18:08

  • laguna

  • Just popping in

  • Posts: 46

  • Since: 2004/10/9


Excellent! The module has been totally functional!
Thank you very much, zyspec!

Hi amigos!!!

8
yingzhao
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2008/5/12 17:59

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Yes, I got the same problem and fix the problem with exactly the same solution. thx.

9
mpatten
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2009/2/27 18:29

  • mpatten

  • Just popping in

  • Posts: 13

  • Since: 2009/2/27


Thanks for the fix!

10
bobwva
Re: Blank page in smartfaq 1.08 running on PHP 5
  • 2009/3/12 3:24

  • bobwva

  • Friend of XOOPS

  • Posts: 17

  • Since: 2007/4/1 1


I am having similar problems, but can't find which is line 167 - can you post the line that needs to be replaced?

Thanks

Login

Who's Online

193 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

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

Latest GitHub Commits