Page 1 of 3
plugin_api.inc.php on line 1625
Posted: Tue Aug 06, 2013 9:07 pm
by chrittig
Hi there!
After Update on s9y 1.7.2 and PHP 5.4.9 i got an error while searching in the blog:
= SERENDIPITY ERROR ==
Please correct:
Illegal string offset 'properties' in /path/to/directory/serendipity/include/plugin_api.inc.php on line 1625
It is here:
// Get a reference to a content field (body/extended) of
// $entries input data. This is a unifying function because
// several plugins are using similar fields.
if (is_array($eventData) && isset($eventData[0]) && is_array($eventData[0]['properties'])) {
if (!empty($eventData[0]['properties']['ep_cache_' . $fieldname])) {
Sorry I am not able to correct this...
Greetings
Christian
Re: plugin_api.inc.php on line 1625
Posted: Wed Aug 07, 2013 10:16 am
by Timbalu
Thanks for noting!
I really wonder why it errors here, in the eventData if.
It would better do on the next line, whyever.
As this is strange, could you please give me the url to take some search tests on my own, please.
Which ep_ property field do you have in that/these entries?
Else it would be nice to have a more detailled error, so you could turn OFF the production mode true, by temporary adding
Code: Select all
$serendipity['production'] = false;
to the manual adding part (~@end) of your serendipity_config_local.inc.php file, to see the trace path of that error, or some better hint what be might be the real issue.
We will find a solution for this.
Re: plugin_api.inc.php on line 1625
Posted: Wed Aug 07, 2013 12:04 pm
by mattsches
Timbalu wrote:I really wonder why it errors here, in the eventData if.
It's because the key 'property' doesn't exist here, that's why PHP issues a warning here.
Maybe $eventData[0] is a string?
As of PHP 5.4, string offsets should be an integer or an integer like string, otherwise the result will be a warning.
Re: plugin_api.inc.php on line 1625
Posted: Wed Aug 07, 2013 12:19 pm
by Timbalu
Shouldn't we all get the error then, mattsches? Mine do work.
Re: plugin_api.inc.php on line 1625
Posted: Wed Aug 07, 2013 12:34 pm
by onli
It depends on which plugin is calling the event. Maybe you don't have it installed.
Please add
after
If the site then seems stable (there is no appearant underlying error) we will patch that in the core. Do you know where to do that?
Regards
Re: plugin_api.inc.php on line 1625
Posted: Wed Aug 07, 2013 9:08 pm
by chrittig
Thank you for your answers.
I added the following to
Code: Select all
$serendipity['production'] = false;
to the serendipity_config_local.inc.php file.
If i Search now, i got this error
Code: Select all
== TESTING ERROR MODE ==
Fatal error: Uncaught exception 'ErrorException' with message 'Illegal string offset 'properties'' in /kunden/146812_52351/webseiten/serendipity/include/compat.inc.php:131
Stack trace:
#0 /kunden/146812_52351/webseiten/serendipity/include/plugin_api.inc.php(1625): errorToExceptionHandler(2, 'Illegal string ...', '/kunden/146812_...', 1625, Array)
#1 /kunden/146812_52351/webseiten/serendipity/plugins/serendipity_event_wikilinks/serendipity_event_wikilinks.php(231): serendipity_event->getFieldReference('body', Array)
#2 /kunden/146812_52351/webseiten/serendipity/include/plugin_api.inc.php(1073): serendipity_event_wikilinks->event_hook('frontend_displa...', Object(serendipity_property_bag), Array, Array)
#3 /kunden/146812_52351/webseiten/serendipity/include/functions_entries.inc.php(1120): serendipity_plugin_api::hook_event('frontend_displa...', Array, Array)
#4 /kunden/146812_52351/webseiten/serendipity/include/genpage.inc.php(106): serendipity_printEntries(Array)
#5 /kunden/146812_52351/webseiten/serendipity/index.php(614) in /kunden/146812_52351/webseiten/serendipity/include/compat.inc.php on line 131
The Url:
www.nebelreiter.com
testing mode is deactivated again.. I can activate it tomorrow again
Greetings Christian
Re: plugin_api.inc.php on line 1625
Posted: Thu Aug 08, 2013 12:40 pm
by Timbalu
I'd like to help, but I cannot reproduce the error on your site. Which keyword did you search for?
Re: plugin_api.inc.php on line 1625
Posted: Thu Aug 08, 2013 3:23 pm
by chrittig
You are right.
I can't believe it, i cannot reproduce it,too.
Until my last Posting it was reproducable... now its very awkward for me...
So, the thread could be closed...
Re: plugin_api.inc.php on line 1625
Posted: Thu Aug 08, 2013 4:12 pm
by Timbalu
Funny, and you did not do anything since then? Install or (re)/move Plugins, write entries or something?
Or maybe the PHP version was upgraded silently?
Re: plugin_api.inc.php on line 1625
Posted: Thu Aug 08, 2013 9:26 pm
by chrittig
It seems to be a browser Problem.
I just have this Problem with Chrome/chromium. IE and Firefox are ok...
Re: plugin_api.inc.php on line 1625
Posted: Fri Aug 09, 2013 11:13 am
by Timbalu
So that seems to be a strange Browsers sending POST request, since the error you get is the Servers response.
Someone wants to investigate this?
Re: plugin_api.inc.php on line 1625
Posted: Fri Sep 27, 2013 2:38 pm
by schimanke
I get this error too when I search on my blog with s9y 1.7.3 and Firefox 23.0.1. Any ideas how to fix it?
Re: plugin_api.inc.php on line 1625
Posted: Fri Sep 27, 2013 3:31 pm
by Timbalu
I can not reproduce this, using FF 24.
Re: plugin_api.inc.php on line 1625
Posted: Fri Sep 27, 2013 5:35 pm
by schimanke
I can confirm.
Re: plugin_api.inc.php on line 1625
Posted: Fri Sep 27, 2013 5:38 pm
by Timbalu
Which Searchterm?