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
Proble mit Suchfunktion
Re: Proble mit Suchfunktion
YES! Update your PHP 4.4.9 to a current 5.x!!!
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
-
- Regular
- Posts: 13
- Joined: Wed Sep 05, 2012 10:12 am
Re: Proble mit Suchfunktion
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
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
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.
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
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Proble mit Suchfunktion
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.
And php4 is insecure, as it is no longer supported, not even with security-updates.
-
- Regular
- Posts: 13
- Joined: Wed Sep 05, 2012 10:12 am
Re: Probleme mit Suchfunktion
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
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
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 give you?
Code: Select all
SHOW INDEX FROM s9y_entries WHERE Index_type = 'FULLTEXT';