1
reWARder
smartfaq White Page get_class()...
  • 2013/7/4 14:54

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


Hi guys

Since moving to Xoops 2.5.6 smartfaq only displays a white page and debug shows me the following error:

Warning: get_class() expects parameter 1 to be object, array given in file /modules/smartfaq/class/faq.php line 550

Furthermore I have 90 Deprecated entries:

'Database::getInstance();' is deprecated since XOOPS 2.5.4, please use 'XoopsDatabaseFactory::getDatabaseConnection();' instead.

Does anybody know what I have to change where to get this module working again?

2
Mamba
Re: smartfaq White Page get_class()...
  • 2013/7/4 15:03

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Which version do you have?

You can try the 1.11 RC1 from XOOPS SVN and see if it helps, but make sure that you backup your data first.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
reWARder
Re: smartfaq White Page get_class()...
  • 2013/7/4 16:21

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


I'm using 1.08. After installing 1.11 and dropping the old db's it was working like a charm. After uploading the old tables, I got the blank page again. So apparently ... I have to look for the "error" in the db files.

4
Mamba
Re: smartfaq White Page get_class()...
  • 2013/7/4 16:31

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Since you have backup, try following:

- reinstall the backup and the old version of SmartFAQ, making sure that it works as before (I assume, the white page was on the front-end, but the Admin was working fine)
- delete the content of the /modules/smartfaq, but don't touch the database
- copy the content of SmartFAQ 1.11 to the /modules/smartfaq
- run update of the module in Admin
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
reWARder
Re: smartfaq White Page get_class()...
  • 2013/7/6 9:09

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


I was finally able to tackle down the issue. It was a Q/A which contained nothing but the title and weight, which caused the white page. After deleting it, smartfaq is working again.

But now, there is something else. When displaying the following site the layout is kind of all over the place:

http://www.ocaholic.ch/modules/smartfaq/category.php?categoryid=264

Do you guys have any idea?

6
reWARder
Re: smartfaq White Page get_class()...
  • 2013/7/6 17:14

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


I found something new.

When I try to upload a new Q/A, then the submit buttons doesn't work. In the back-end a new Q/A is being created but it is empty. In the end it looks like something with the permissions is not working.

When I go to the permissions tab, I can only edit the view permissions. But as far as I remember there should also be other permissions to select, like the submit permissions.

Do you have any clue where the issue might be?

7
reWARder
Re: smartfaq White Page get_class()...
  • 2013/7/11 17:38

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


I finally found the main issue: there was no auto increment in the DB files anymore.

8
Mamba
Re: smartfaq White Page get_class()...
  • 2013/7/11 20:21

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


How could this happen?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

9
reWARder
Re: smartfaq White Page get_class()...
  • 2013/7/13 11:35

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


Quote:

Mamba wrote:
How could this happen?


I honestly don't know. Since it really wouldn't come to my mind to change this parameter after creating a dump, I simply see no way for me to explain the phenomenon.

Login

Who's Online

153 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 153


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