Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorhenk
    • CommentTimeOct 4th 2005
     
    I have installed plogger on my linux host with mysql etc and all is succeeded. However, when I want to create the first collection in order to upload images, I get:

    Call to undefined function: mysql_real_escape_string() in (here was my web address)/ploggerb2/plog-functions.php on line 131

    Anyone knows what this means?
    •  
      CommentAuthoranti
    • CommentTimeOct 4th 2005
     
    mysql_real_escape_string appeared in PHP 4.3.0

    It seems that you are running an earlier version of PHP. Can you upgrade to a newer version?
    • CommentAuthorhenk
    • CommentTimeOct 5th 2005
     
    My version is PHP 4.1.2 so you're right about that. The hoster will not upgrade on the short term, so either I will have to switch to another hoster, or get me an older version of plogger :-(
    • CommentAuthorAngus
    • CommentTimeNov 11th 2005
     
    Any fix to this as I get same error (other than upgrading php).
    • CommentAuthorAngus
    • CommentTimeNov 11th 2005
     
    Solution was easy. For people on older version of php, all I did was this:

    In the code there are two files that contain the text: mysql_real_escape_string

    plog-functions.php is one and there is one in the admin, I forget which.

    All I did was replace the text

    mysql_real_escape_string

    with

    addslashes

    and no problems.