Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Ckfinder

  1. #1
    Regular Coder
    Join Date
    Oct 2011
    Posts
    237
    Thanks
    11
    Thanked 5 Times in 5 Posts

    Ckfinder

    Hi guys

    For my website i decided to go with ckfinder for image upload and management through my ckeditor.

    I had everything working smoothly within the local but when i uploaded to my server i get the following error:

    Code:
    It was not possible to properly load the XML response from the web server.
    
    Raw response from the server: 
    
    <br />
    <b>Warning</b>: mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: 
    Access denied for user 'admin'@'localhost' (using password: NO) in <b>/home/xxx/public_html/users/ckfinder/config.php</b> on line <b>65</b><br />
    the line of code its pointing to is the root which is:

    PHP Code:
    $isauth trim($_SESSION['IsAuthorized']);
    $authorised mysql_real_escape_string($isauth);
    $baseUrl '/resources/blogimages/' $authorised '/blog/'
    ive printed the session out and its working fine with the correct username

    I get this working if i dont use the mysql_real_escape_string but i want to use this as i do not trust anything.

    How do i work around this?

    The ckeditor is working fine its just the ckfinder.

    I am asking on here as i have been asking for a week now on ckfinder forum and the so called dedicated support email they provide to paying customers.

    Not had 1 response yet.

    Will not be using them again i think.
    Last edited by devinmaking; 10-23-2011 at 11:37 AM. Reason: adding information

  • #2
    Regular Coder
    Join Date
    Jul 2010
    Location
    Oregon City
    Posts
    280
    Thanks
    5
    Thanked 50 Times in 49 Posts
    Quote Originally Posted by devinmaking View Post
    Hi guys

    For my website i decided to go with ckfinder for image upload and management through my ckeditor.

    I had everything working smoothly within the local but when i uploaded to my server i get the following error:

    Code:
    It was not possible to properly load the XML response from the web server.
    
    Raw response from the server: 
    
    <br />
    <b>Warning</b>: mysql_real_escape_string() [<a href='function.mysql-real-escape-string'>function.mysql-real-escape-string</a>]: 
    Access denied for user 'admin'@'localhost' (using password: NO) in <b>/home/xxx/public_html/users/ckfinder/config.php</b> on line <b>65</b><br />
    the line of code its pointing to is the root which is:

    PHP Code:
    $isauth trim($_SESSION['IsAuthorized']);
    $authorised mysql_real_escape_string($isauth);
    $baseUrl '/resources/blogimages/' $authorised '/blog/'
    The start of the page has the session start command also!

    ive printed the session out and its working fine with the correct username

    It works 100% on my local so i have no reason why its not working within the server and why is it asking to connect to database within the error message as the ckfinder does not use a database? its just uploading and inputting into ckeditor, the ckeditor is inputting the data.

    The ckeditor is working fine its just the ckfinder.

    I am asking on here as i have been asking for a week now on ckfinder forum and the so called dedicated support email they provide to paying customers.

    Not had 1 response yet.

    Will not be using them again i think.
    your script is having problems connecting to a database it says so on last line.. your local db info might be different from your server db

  • #3
    Regular Coder
    Join Date
    Oct 2011
    Posts
    237
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by Adee View Post
    your script is having problems connecting to a database it says so on last line.. your local db info might be different from your server db
    this script does not have a database, it does not sit alone.

    It works if i take the mysql_real_escape_string() out

    But i would like to keep that in for security reasons.

  • #4
    Regular Coder
    Join Date
    Jul 2010
    Location
    Oregon City
    Posts
    280
    Thanks
    5
    Thanked 50 Times in 49 Posts
    you can't use mysql_real_escape_string() without a database connection

  • #5
    Regular Coder
    Join Date
    Oct 2011
    Posts
    237
    Thanks
    11
    Thanked 5 Times in 5 Posts

    Thumbs up

    Quote Originally Posted by Adee View Post
    you can't use mysql_real_escape_string() without a database connection
    That is why its saying can not find a database, thanks.

    Thumbs up!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •