11
zzzzsg
Re: Smartfaq blank page? it worked 5 mins ago
  • 2009/8/13 20:14

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Fatal error: Call to a member function setVar() on a non-object in /usr/local/www/xoops/modules/smartfaq/category.php on line 125

None All errors (0) queries (37) blocks (8) extra (2) timers (5)
Errors
Queries
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data, sess_ip FROM session WHERE sess_id = '335d861f15ce48d3b01b8668a854735e'
SELECT * FROM users WHERE uid = '2'
SELECT * FROM modules WHERE dirname = 'smartfaq'
SELECT * FROM config WHERE (conf_modid = '11') ORDER BY conf_order ASC
SELECT * FROM smartfaq_categories WHERE categoryid=11
SELECT * FROM group_permission WHERE (gperm_name = 'category_read' AND gperm_itemid = '11' AND gperm_modid = '11')
SELECT categoryid, COUNT(*) AS count FROM smartfaq_faq WHERE categoryid = 11 AND status IN (5,6) GROUP BY categoryid
SELECT COUNT(*) FROM banner
SELECT * FROM banner LIMIT 2, 1
UPDATE banner SET impmade = impmade+1 WHERE bid = 3
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '3') ORDER BY conf_order ASC
SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (1,4)
SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,11) AND b.bid IN (29,28,27,26,25,23,21,20,17,13,12,11,10,9,18,15,7,6,5,4,3,2,1,22,8,19,30,31,32,37,38,117,116,115,114,39,40,43,44,48) ORDER BY b.weight, m.block_id
SELECT * FROM modules WHERE (hasmain = '1' AND isactive = '1' AND weight > '0') ORDER BY weight ASC, mid ASC
SELECT * FROM group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '4'))
SELECT * FROM modules WHERE dirname = 'news'
SELECT * FROM config WHERE (conf_modid = '4') ORDER BY conf_order ASC
SELECT * FROM modules WHERE dirname = 'PDdownloads'
SELECT * FROM modules WHERE dirname = 'wflinks'
SELECT COUNT(*) FROM smartfaq_faq WHERE ((status = '2'))
SELECT * FROM groups
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_block_mainmenu.html') ORDER BY tpl_refid
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_block_dummy.html') ORDER BY tpl_refid
SELECT * FROM smiles
SELECT * FROM smartfaq_faq WHERE (categoryid = '11' AND (status = '5' OR status = '6')) ORDER BY weight ASC LIMIT 0, 20
SELECT categoryid, COUNT(*) AS count FROM smartfaq_faq WHERE status IN (5,6) GROUP BY categoryid
SELECT * FROM smartfaq_categories WHERE categoryid=7
CREATE TEMPORARY TABLE tmp (categoryid INT(8) UNSIGNED NOT NULL,datesub int(11) DEFAULT '0' NOT NULL);
LOCK TABLES smartfaq_faq READ;
INSERT INTO tmp SELECT categoryid, MAX(datesub) FROM smartfaq_faq WHERE status IN (5,6) GROUP BY categoryid;
SELECT smartfaq_faq.categoryid, faqid, question, uid, smartfaq_faq.datesub FROM smartfaq_faq, tmp WHERE smartfaq_faq.categoryid=tmp.categoryid AND smartfaq_faq.datesub=tmp.datesub;
UNLOCK TABLES;
DROP TABLE tmp;
SELECT * FROM smartfaq_categories WHERE (parentid = '11') ORDER BY weight ASC
SELECT faqid, answer, uid, datesub FROM smartfaq_answers WHERE faqid IN (8,101,102,229) AND status = 1 GROUP BY faqid
SELECT * FROM `users` WHERE uid IN (1,2)
Total: 37 queries
Blocks
Login: No Cache
Main Menu: No Cache
Custom Block (HTML): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Total: 8 blocks
Extra
Included files: 82 files
Memory usage: 2237888 bytes
Timers
XOOPS took 0.168 seconds to load.
XOOPS Boot took 0.035 seconds to load.
Module init took 0.008 seconds to load.
XOOPS output init took 0.076 seconds to load.
Module display took 0.049 seconds to load.

12
zzzzsg
Re: Smartfaq blank page? it worked 5 mins ago
  • 2009/8/13 20:17

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Fatal error: Call to a member function answer() on a non-object in /usr/local/www/xoops/modules/smartfaq/faq.php on line 67

None All errors (1) queries (29) blocks (8) extra (2) timers (5)
Errors
Notice: Only variable references should be returned by reference in file /modules/smartfaq/class/answer.php line 353

Queries
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data, sess_ip FROM session WHERE sess_id = '335d861f15ce48d3b01b8668a854735e'
SELECT * FROM users WHERE uid = '2'
SELECT * FROM modules WHERE dirname = 'smartfaq'
SELECT * FROM config WHERE (conf_modid = '11') ORDER BY conf_order ASC
SELECT * FROM smartfaq_faq WHERE faqid=8
SELECT * FROM smartfaq_categories WHERE categoryid=11
SELECT * FROM group_permission WHERE (gperm_name = 'category_read' AND gperm_itemid = '11' AND gperm_modid = '11')
SELECT * FROM group_permission WHERE (gperm_name = 'item_read' AND gperm_itemid = '8' AND gperm_modid = '11')
SELECT * FROM smartfaq_answers WHERE (faqid = '8' AND (status = '1')) ORDER BY datesub DESC LIMIT 0, 1
UPDATE smartfaq_faq SET counter=counter+1 WHERE faqid = 8
SELECT COUNT(*) FROM banner
SELECT * FROM banner LIMIT 2, 1
UPDATE banner SET impmade = impmade+1 WHERE bid = 3
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '3') ORDER BY conf_order ASC
SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (1,4)
SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,11) AND b.bid IN (29,28,27,26,25,23,21,20,17,13,12,11,10,9,18,15,7,6,5,4,3,2,1,22,8,19,30,31,32,37,38,117,116,115,114,39,40,43,44,48) ORDER BY b.weight, m.block_id
SELECT * FROM modules WHERE (hasmain = '1' AND isactive = '1' AND weight > '0') ORDER BY weight ASC, mid ASC
SELECT * FROM group_permission WHERE (gperm_name = 'module_read' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '4'))
SELECT * FROM modules WHERE dirname = 'news'
SELECT * FROM config WHERE (conf_modid = '4') ORDER BY conf_order ASC
SELECT * FROM modules WHERE dirname = 'PDdownloads'
SELECT * FROM modules WHERE dirname = 'wflinks'
SELECT COUNT(*) FROM smartfaq_faq WHERE ((status = '2'))
SELECT * FROM groups
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_block_mainmenu.html') ORDER BY tpl_refid
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset = 'default' AND tpl_file = 'system_block_dummy.html') ORDER BY tpl_refid
SELECT * FROM smiles
SELECT * FROM smartfaq_categories WHERE categoryid=7
Total: 29 queries
Blocks
Login: No Cache
Main Menu: No Cache
Custom Block (HTML): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Custom Block (PHP): No Cache
Total: 8 blocks
Extra
Included files: 80 files
Memory usage: 1343904 bytes
Timers
XOOPS took 0.124 seconds to load.
XOOPS Boot took 0.028 seconds to load.
Module init took 0.012 seconds to load.
XOOPS output init took 0.071 seconds to load.
Module display took 0.013 seconds to load.

13
zzzzsg
Re: Smartfaq blank page? it worked 5 mins ago
  • 2009/8/13 20:18

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


problem still persists

above at the two errors i got
the first when i clicked on a category
the second when i clicked on FAQ

14
zzzzsg
Re: Smartfaq blank page? it worked 5 mins ago
  • 2009/8/13 20:29

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Fatal error: Call to a member function answer() on a non-object in /usr/local/www/xoops/modules/smartfaq/faq.php on line 67

None All errors (1) queries (29) blocks (8) extra (2) timers (5)
Errors
Notice: Only variable references should be returned by reference in file /modules/smartfaq/class/answer.php line 353


15
Mazar
Re: Smartfaq blank page? it worked 5 mins ago
  • 2009/8/14 10:47

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


replace line 125 in cateogry.php with the following

$answerObj->setVar('dohtml', $faqsObj[$i]->getVar('html'));

16
zzzzsg
Re: Smartfaq blank page? it worked 5 mins ago
  • 2009/8/14 18:30

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


line 125 of category.php was already
$answerObj->setVar('dohtml', $faqsObj[$i]->getVar('html'));

thanks anyway

17
Mamba
Re: Smartfaq blank page? it worked 5 mins ago
  • 2009/8/24 10:34

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I had something similar - lack of answer generated blank screens.

I wanted to keep the question, so I've inserted in phpMyAdmin an answer to the Answer Table, linked to my question, and everything is working now.

The challenge is to go through the questions and find one which one generates the blank screen, and then either delete it, or add an answer to it.

18
occRead
Re: Smartfaq blank page? it worked 5 mins ago
  • 2010/1/5 13:50

  • occRead

  • Just popping in

  • Posts: 4

  • Since: 2009/12/23


Hello,

I encountered the same issue.

Solved it by reducing a functionality on the user side.

In Admin Panel smartfaq Preferences, I set User submissions: to No

The user is still able to request questions (need to be approved by moderator)

He can add responses without moderation to already answered questions.

smartfaq 1.08
PHP 4.x
xoops 2.4.2

Thanks
occRead



Login

Who's Online

290 user(s) are online (258 user(s) are browsing Support Forums)


Members: 0


Guests: 290


more...

Donat-O-Meter

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

Latest GitHub Commits