2 users online. Create an account or sign in to join them.Users

Search

The browser displays, that PHP can't find the mysqlsetcharset function in the class.mysql.php script in the subfolder symphony/lib/toolkit.

The older PHP version doesn't have this function, but I can't update it on my server.

My solution:

Add the following lines on the top of above called script:

if (function_exists('mysql_set_charset') === false) { 
     /** 
      * Sets the client character set. 
      * 
      * Note: This function requires MySQL 5.0.7 or later. 
      * 
      * @see http://www.php.net/mysql-set-charset 
      * @param string $charset A valid character set name 
      * @param resource $link_identifier The MySQL connection 
      * @return TRUE on success or FALSE on failure 
      */ 
    function mysql_set_charset($charset, $link_identifier = null) { 
        if ($link_identifier == null) { 
            return mysql_query('SET NAMES "'.$charset.'"'); 
        } else { 
            return mysql_query('SET NAMES "'.$charset.'"', $link_identifier); 
        } 
    } 
}

The older PHP version doesn't have this function, but I can't update it on my server.

Useful to know. What version are you running on your server?

Perhaps the requirements of Symphony need to be 5.2.3 and not simply 5.2?

On this server I only have the 5.2. version. But after this change I have no longer a problem!

this couldn't have come at a better time. i attempted to launch a site last night on a host i have little control over, only to be greeted by this error and a "we'll see what we can do" response to an upgrade inquiry.

thank you, atd.

Perhaps the requirements of Symphony need to be 5.2.3 and not simply 5.2?

i do all my development on a server that only has 5.2.17 and it's never given me any problems.

edit: atd, i'm also curious which version of php you're operating on. did you experience an error with the DateTime() class?

The phpinfo tells me that I use 5.2.0-8+etch16.

Errors with the DateTime() class I haven't so far..

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details