Mark threads with "[2.0]" for discussions about features in the longer-term future, "[1.6]" is for short-term. This is not the place for general discussions or plugin or template requests. Only features that are approved to happen by the core team should be listed here for better structuring.
public s9y wrote:the following error occurs with followed links or page reloads on a local installation (OSX) updated to 1.7rc2, only direct access works well:
Fatal error: Uncaught exception 'ErrorException' with message 'Serendipity error: stristr(): Empty delimiter' in /Users/me/Sites/serendipity/include/compat.inc.php:119
Stack trace:
#0 [internal function]: errorToExceptionHandler(2, 'stristr(): Empt...', '/Users/me/Sit...', 713, Array)
#1 /Users/me/Sites/serendipity/include/functions.inc.php(713): stristr('http://localhos...', '')
#2 /Users/me/Sites/serendipity/index.php(625): serendipity_track_referrer()
#3 {main}
thrown in /Users/me/Sites/serendipity/include/compat.inc.php on line 119
For me it does not look like an error produced by the upgrade itself...
Is production = 'debug' enabled?
Could you please tell us which PHP version you are using? Which S9y version was it before?
The errored line in /Users/me/Sites/serendipity/include/functions.inc.php(713) is:
What I find funny is that stristr() complains about an "Empty delimiter"; but stristr itself is NOT regular expression based, so it should not even have an delimiter! So yes, please tell us your PHP version, also if you have any possible PHP extensions that could overload stristr() [mb does this!]
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PHP 5.3.15 with mbstring. The former S9Y version was 2.0alpha. I'm running many WebCMSs in different versions on this machine and it's the first time with such an error.
I can do a fresh S9Y installation 'cause it's only for testing purposes.
So I did a second parallel installation from 1.6.2 to 1.7rc2 and everything works fine.
And when I enable „Autodetect used HTTP-Host = yes“ in my first installation, everything is fine, too.
Thanks for reading and sorry for the inconvenience.
No problem, but I'm really stumped because of the error. PHP 5.3.17 is a bit outdated; I do think it should be related to PHP.
If the other installation works on the same PHP environment, that is all the more strange though...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Come on Garvin,
You can't describe a 4 month old release as really outdated...!
Release Date was 13-September-2012.
It might still have to do with the PHP version ... or even be something special, downgrading an 2.0-alpha to 1.7 (maybe even something copy&paste releated).
Edit:
Ok, I saw he was talking about 5.3.15 - but this is just 2 month more... 19-July-2012
Just a note to upgraders from an alpha to the current rc version:
The automatic checksum diagnose function running a complete file md5 sum against the delivered checksum file, may cost some time. Be sure to have set your defaults php.ini max_execution_time = 30 to be some more, like 60 seconds, to avoid calculating runtime errors.
rowi wrote:Edit: seems to be related to the karma plugin, I've deactivated it and now all PHP Versions work fine
Upgraders should note in general to update all currently used additional plugins first!!
PLUGIN NOTICE:
Due to PHP 5.2+'s raised error reporting, every Serendipity event plugin needs to conform to the core plugin API method signature.
All internal and spartacus plugins have been updated to reflect this change. The most important signatures are:
function uninstall(&$propbag)
function event_hook($event, &$bag, &$eventData, $addData = null)
Older plugins specifically did not always include the $addData signature. Make sure this exists.
If after installation you get uncircumventable errors, you can make sure to set $serendipity['production'] = true; in your serendipity_config_local.inc.php file. This should lower error reporting to a way that will not interfere with incompatible problem. But this is no solution in the long run, you need to update your plugins.
Also, the serendipity_event_browsercompatibility plugin has been removed, because it's functionality was no longer required. You should uninstall that plugin if you are currently using it.
TEMPLATE_NOTICE:
The template file "entries.tpl" needs a specific assignment, to transport the $entry variable to "sub-templates" like comments.tpl and trackbacks.tpl.
All internal and spartacus templates have been updated, so make sure you are using a recent version of your blog's template.
If you have your own custom template, be sure within your {foreach from=$dategroup.entries item="entry"} loop has this line after it:
Another TEMPLATE_NOTICE:
The old Bulletproof template had a bug, which did not properly set the colorset array in the bulletproof config.inc.php file on changing templates in the backend. If you have an old Bulletproof (based) template running, please change:
rowi wrote:Edit: seems to be related to the karma plugin, I've deactivated it and now all PHP Versions work fine
Upgraders should note in general to update all currently used additional plugins first!!
I know, Spartacus doesn't show any update. The Karma Plugin is v 2.7 but obviously not listed in spartacus (web) anymore so it might be outdated anyway.
Timbalu wrote:What kind of errors? - Please paste error debug output.
Is that because you did not update first or did this happen in their latest version?
Microformats:
Fatal error: Uncaught exception 'SmartyException' with message 'Plugin tag "microformats_show" already registered' in /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php:426 Stack trace: #0 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/include/serendipity_smarty_class.inc.php(337): Smarty_Internal_TemplateBase->registerPlugin('function', 'microformats_sh...', 'microformats_se...', true, NULL) #1 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/plugins/serendipity_event_microformats/serendipity_event_microformats.php(245): Serendipity_Smarty->register_function('microformats_sh...', 'microformats_se...') #2 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/include/plugin_api.inc.php(1073): serendipity_event_microformats->event_hook('backend_preview', Object(serendipity_property_bag), Array, NULL) #3 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/include/functions_entries.inc.php(1195): serendipit in /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php on line 426
Auto-Title:
Fatal error: Uncaught exception 'SmartyException' with message 'Call of unknown method 'get_template_vars'.' in /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php:806 Stack trace: #0 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/plugins/serendipity_event_autotitle/serendipity_event_autotitle.php(196): Smarty_Internal_TemplateBase->__call('get_template_va...', Array) #1 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/plugins/serendipity_event_autotitle/serendipity_event_autotitle.php(196): Serendipity_Smarty->get_template_vars('head_charset') #2 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/plugins/serendipity_event_autotitle/serendipity_event_autotitle.php(130): serendipity_event_autotitle->autotitle('<a class="seren...') #3 /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/include/plugin_api.inc.php(1073): serendipity_event_autotitle->event_hook('frontend_displa...', Object(serendipity_property_bag), in /mounted-storage/home126/sub001/sc73540-KSFN/www/stdlw/s9y/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php on line 806
Both are the latest versions from spartacus, I checked for updates prior updating (there were none) and 3mins ago.
if (method_exists($serendipity['smarty'], 'get_template_vars')) {
//handle with Smarty version 2
$own_charset = $serendipity['smarty']->get_template_vars('head_charset');
} else {
//handle with Smarty version 3 ...
$own_charset = $serendipity['smarty']->tpl_vars['head_charset']->value;
}