Proble mit Suchfunktion

Creating and modifying plugins.
Post Reply
schriftsteller
Regular
Posts: 13
Joined: Wed Sep 05, 2012 10:12 am

Proble mit Suchfunktion

Post 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
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Proble mit Suchfunktion

Post by Timbalu »

YES! Update your PHP 4.4.9 to a current 5.x!!! :wink:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
schriftsteller
Regular
Posts: 13
Joined: Wed Sep 05, 2012 10:12 am

Re: Proble mit Suchfunktion

Post 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
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Proble mit Suchfunktion

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Proble mit Suchfunktion

Post 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.
schriftsteller
Regular
Posts: 13
Joined: Wed Sep 05, 2012 10:12 am

Re: Probleme mit Suchfunktion

Post 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
mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 9:35 pm
Location: Wiesbaden, Germany
Contact:

Re: Proble mit Suchfunktion

Post 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?
Post Reply