Page 2 of 2

Re: Serendipity and PHP 5.3.0

Posted: Fri Aug 21, 2009 10:52 am
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

Re: Serendipity and PHP 5.3.0

Posted: Fri Aug 21, 2009 1:35 pm
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

Re: Serendipity and PHP 5.3.0

Posted: Fri Aug 21, 2009 2:13 pm
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