Page 1 of 1

Proble mit Suchfunktion

Posted: Wed Sep 05, 2012 10:20 am
by schriftsteller
Problems with "search"

After Updating yesterday,to your new version, several functions are not longer valid or fail to work. Afetr updating to Serendipity 1.6.2 ( PHP 4.4.9) the search function failed in soem cases, i.E. "liebe" worked, while "pants" did not.

This error appears:

Warning: Invalid argument supplied for foreach() in /kunden/nnn/liebepur/serendipity/include/functions_entries.inc.php on line 857

Fatal error: Cannot create references to/from string offsets nor overloaded objects in /kunden/nnn/liebepur/serendipity/include/plugin_api.inc.php on line 1651.

Other probelmes accured with taggings and other plugings, wich i deleted now. Is thery any chance to fix the problem?

You can answer in German or English

Best wishes

Gebhard

Re: Proble mit Suchfunktion

Posted: Wed Sep 05, 2012 11:15 am
by Timbalu
YES! Update your PHP 4.4.9 to a current 5.x!!! :wink:

Re: Proble mit Suchfunktion

Posted: Fri Sep 07, 2012 9:42 am
by schriftsteller
Hi Ian,

I do not believe that this will solve the problem, as it doesn't seem to be a PHP problem. "search" is a function, and it connects to the database. As some queries work and others don't, it can not be a PHP problem.

Furthermore, other "search" functions like the "Filter" tool work excellent. So most probably, it is some sort of "misunderstanding" between the serach function and the database. By the way - it's not really new that the "search" tool gives doubtful results, for example when using "Umlaut"-Characters. But I thought that this problem ha sbeen solved in the new release?


Best wishes

Gebhard

Re: Proble mit Suchfunktion

Posted: Fri Sep 07, 2012 1:57 pm
by Timbalu
Then, what kind of database and which version is installed?
Search is not as easy as you might think it to be. It has some interaction restrictions to at least 3 possible results in three different entries, AFAIR; and it depends on the used database too.
PHP4 has also problems with references to objects...., that is why I came up with the upgrade, in special as you have said, you did have problems with tagging and other plugins too.

Re: Proble mit Suchfunktion

Posted: Fri Sep 07, 2012 2:46 pm
by onli
It's quite possible that the issue is caused by php 4.4.9. The errors you posted are php-errors.

And php4 is insecure, as it is no longer supported, not even with security-updates.

Re: Probleme mit Suchfunktion

Posted: Sat Sep 08, 2012 3:41 pm
by schriftsteller
Thanks for the suggestions. Maybe your aer all PHP-Experts (I am not), so I updated to PHP 5, which did not solve the problem - only the message changend to "not found", which is an advantage, but not a solution. Furthermore, Umlaut Charakters DO work now, but I altered a lot, not only PHP.

By the way: Does anyone use the template sagittarus-A, which did not seem to work either after the Update.

Best wishes


Gebhard

Re: Proble mit Suchfunktion

Posted: Tue Sep 11, 2012 11:52 am
by mattsches
Might as well be a database related issue. Is your installation running on MySQL? Do you have access to your DB via PhpMyAdmin? If so, could you try to find out if an FULLTEXT INDEX exists for the "entries" table? What does

Code: Select all

SHOW INDEX FROM s9y_entries WHERE Index_type = 'FULLTEXT';
give you?