1
tommyZ
What's Wrong with my Xoops?
  • 2005/1/4 17:09

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hello dear XOOPS users,

I am experiencing the following problem with my XOOPS install:


I want to use the FAQ and Sections module and so after installing them, they appear, but when I try to add a new category to either of them, nothing happens. Of course I am logged in as Admin and I am trying to do this from the Control Panel.




Any help would be much appreciated.

best regards

TommmyZ


oh yea

IIS6, MySQL, Win2003, PHP5

2
irmtfan
Re: What
  • 2005/1/4 18:09

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:
but when I try to add a new category to either of them, nothing happens.

what do you mean in nothing happen. it take a blank page or something?
what is your XOOPS version?
plz turn php debug on

3
tommyZ
Re: What
  • 2005/1/4 18:23

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hi,
I am using xoops-2.0.9.2.

"what do you mean in nothing happen. it take a blank page or something?"

it returns to the module's setup page as if a catergory was just added, but it doesnt get added.

btw,
I have just installed SMARTFAQ and it installed fine, but when I try to add a catergory in it, I get following error:

"An error occured while saving the category. Here is a list of error(s) : "

no errors are listed.

will now turn debug on.

4
tommyZ
Re: What
  • 2005/1/4 18:38

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


with SQL Debug on -

when I go to the SmartFAQ module in the admin panel I get the follow error:

SELECT faqid, COUNT(*) FROM xoops2_smartfaq_answers WHERE faqid IN () GROUP BY faqid
Error number: 1064
Error message: You have an error in your SQL syntax near ') GROUP BY faqid' at line 1


adding a catergory does not produces an error message (in section/faq/smartfaq)

PHP Debug produced the following error when tried to update anonymous group permission in the permission settings of smartFAQ:

Notice [PHP]: Undefined variable: HTTP_POST_VARS in file c:\Inetpub\wwwroot\xoops\html\modules\smartfaq\admin\mygroupperm.php line 46


where else should I look for errors?

5
DonXoop
Re: What

PHP 5? Suggest going back to 4.0.10 until all the modules catch up with v5.

Without digging into the docs you should also check the install docs for any chmod 777 requirements, that might be another issue.

6
Mithrandir
Re: What

I believe you are using PHP 5 without the directive register_long_arrays

Most modules (and XOOPS < 2.0.9) still require this directive enabled in your PHP configuration, although it is being out-phased in PHP starting with PHP 5

7
tommyZ
Re: What
  • 2005/1/4 18:58

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


turned the register_long_arrays flag on and it fixed the issue with FAQ and Sections


SMARTFAQ still behaves the same... I will consider switching back to php4

appricate the help

TommyZ

8
Peekay
Re: What
  • 2005/1/4 19:07

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Does the register_long_arrays setting show up in PHPinfo?. It's just that I imagine many hosts will not re-enable this setting when they upgrade to PHP5. Perhaps this should be added to XOOPS published system requirements?.

9
bigddave
Fix for the SmartFAQ category problem.
  • 2005/1/7 20:32

  • bigddave

  • Just popping in

  • Posts: 2

  • Since: 2005/1/7 2


I had the same problem with SmartFAQ when I installed it on a PHP 5. It's not a PHP 5 problem. It's a problem in the admin class code. Details are below.

Xoops Version: 2.0.9.2
SmartFAQ Version: 1.03 (Final)

Problem:
After initial install of SmartFAQ, message that
the category/question/answer save had an error, with
no further detail.

Resolution:
In the category.php, answer.php, and faq.php files
in the smartfaq/class folder, there is a line
checking the class type of the object passed in.
It's checked against a lowercase literal string,
whereas the result of get_class returns a mixed case
string. Solved this problem by running the get_class
result through the strtolower php function. Also made
this modification in any area that did the same
check. Below are the lines changed in each file.

File modifications: (All files in smartfaq/class)
category.php ----
Lines 273 and 319 now read:
if (strtolower(get_class($category)) ! = 'sfcategory') {

faq.php ---------
Lines 579 and 631 now read:
if (strtolower(get_class($faq)) != 'sffaq') {

answer.php ------
Lines 212 and 260 now read:
if (strtolower(get_class($answerObj)) ! = 'sfanswer') {

Line 287 now reads:
if (strtolower(get_class($faqObj)) != 'sffaq') {
----------------------------------------------------------

Just change those lines (copy and past if you want). Will fix the problem right then. Be sure to do this on each file. Because that same problem will show up when you try to add an queastion and answer as well.

Login

Who's Online

300 user(s) are online (269 user(s) are browsing Support Forums)


Members: 0


Guests: 300


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