Serendipity and PHP 5.3.0

Having trouble installing serendipity?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity and PHP 5.3.0

Post by garvinhicking »

Hi!

Thanks for that report, in fact you are right and this is a still-present issue. The patch would be in include/functions_smarty.inc.php to replace:

Code: Select all

function &serendipity_replaceSmartyVars(&$tpl_source, &$smarty) {
with:

Code: Select all

function &serendipity_replaceSmartyVars($tpl_source, &$smarty) {
I've also committed this fix to our SVN for the next snapshot.

regard,s
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/
kaktux
Regular
Posts: 8
Joined: Sat Aug 30, 2008 12:42 am

Re: Serendipity and PHP 5.3.0

Post by kaktux »

so - now i made some test installations:
S9y 1.4.1 lite - doesn't work - throws out one error line, blank screen after reload
S9y 1.4.1 full - doesn't word - throws out one error line, blank screen after reload
But as these two are not for php 5.3 thats ok and excepted.

So to the new Version - the actual nightly build
s9y_200908202342.tar.gz
Edit: also tested with the new RC - same Error

I took the easy installation with a prostgresql.
After entering the data i got this (german installation)

Code: Select all

Prüfe, ob Datenbank und Tabellen bereits bestehen ...... Positiv, werde Datenbank nicht erneut erzeugen

Versuche, die Datei '.htaccess' zu erstellen...... Fertig

Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0xe4676c HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". in /users/wamborama/www/orama/include/db/postgres.inc.php on line 210
Error in INSERT INTO serendipity_config (name,value,authorid) values ('blogDescription', 'blabla...', '0')
ERROR: invalid byte sequence for encoding "UTF8": 0xe4676c HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
array (
  0 => 
  array (
    'file' => '/xyz/include/db/db.inc.php',
    'line' => 85,
    'function' => 'serendipity_db_query',
    'args' => 
    array (
      0 => 'INSERT INTO serendipity_config (name,value,authorid) values (\'blogDescription\', \'blabla...\', \'0\')',
    ),
  ),
  1 => 
  array (
    'file' => '/xyz/include/functions_config.inc.php',
    'line' => 107,
    'function' => 'serendipity_db_insert',
    'args' => 
    array (
      0 => 'config',
      1 => 
      array (
        'name' => 'blogDescription',
        'value' => 'blabla...',
        'authorid' => 0,
      ),
    ),
  ),
  2 => 
  array (
    'file' => '/xyz/include/functions_installer.inc.php',
    'line' => 1021,
    'function' => 'serendipity_set_config_var',
    'args' => 
    array (
      0 => 'blogDescription',
      1 => 'blabla...',
      2 => 0,
    ),
  ),
  3 => 
  array (
    'file' => '/xyz/include/admin/installer.inc.php',
    'line' => 564,
    'function' => 'serendipity_updateConfiguration',
    'args' => 
    array (
    ),
  ),
  4 => 
  array (
    'file' => '/xyz/serendipity_admin.php',
    'line' => 356,
    'args' => 
    array (
      0 => '/xyz/include/admin/installer.inc.php',
    ),
    'function' => 'require',
  ),
)
INSERT INTO serendipity_config (name,value,authorid) values ('blogDescription', 'blabla...', '0')
And after clicking "visit your new blog here" i got this line:

Code: Select all

Warning: Parameter 1 to serendipity_replaceSmartyVars() expected to be a reference, value given in /xyz/bundled-libs/Smarty/libs/Smarty_Compiler.class.php on line 249
After reloading i got the blank screen again
Last edited by kaktux on Tue Aug 25, 2009 10:51 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity and PHP 5.3.0

Post by garvinhicking »

Hi!

Do you use other PHP installation sucessfully with postgresql? It seems your server is configured for UTF8, but the client library cannot properly use that charset. This should be unrelated to serendipity...
And after clicking "visit your new blog here" i got this line:

Code: Select all

Warning: Parameter 1 to serendipity_replaceSmartyVars() expected to be a reference, value given in /xyz/bundled-libs/Smarty/libs/Smarty_Compiler.class.php on line 249
Yes, this remaining bug is something I've fixed, mentioned just above your new posting.

Thanks for helping to resolve the issues,
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/
Post Reply