Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Ian Friend
    #119846

    i have this message Restricted access and i can’t see my site
    some help pls!!!

    Ian Friend
    #218691

    OK fixed……

    blueskies Friend
    #221510

    I’m new to Joomla and decided to choose the best engineered template, ja_mercury to learn from.

    Unfortunately I’ve installed it but am getting restricted access error:

    mysql_real_escape_string(): 43 is not a valid MySQL-Link resource in
    C:Domainsmydomain\wwwrootjoomlalibrariesjoomladatabasedatabasemysql.php on line 169

    Any help would be appreciated.

    Michael Casha Friend
    #221513

    <em>@blueskies 17367 wrote:</em><blockquote>I’m new to Joomla and decided to choose the best engineered template, ja_mercury to learn from.

    Unfortunately I’ve installed it but am getting restricted access error:

    mysql_real_escape_string(): 43 is not a valid MySQL-Link resource in
    C:Domainsmydomain\wwwrootjoomlalibrariesjoomladatabasedatabasemysql.php on line 169

    Any help would be appreciated.</blockquote>
    Try this:

    Open joomla/plugins/authentication/ldap.php and on line 59 add:

    <blockquote>$plugin =& JPluginHelper::getPlugin(‘authentication’, ‘ldap’);
    $this->params = new JParameter( $plugin->params );</blockquote>

    Courtesy of the Joomla Forum

    blueskies Friend
    #221516

    Thanks for the suggestion. Still no joy. Note I am using Joomla 1.5 Beta on remote Hosted Windows 2003 Server which works fine with default theme.

    My code with your suggestion:

    function onAuthenticate( $username, $password, &$response )
    {
    // Initialize variables
    $userdetails = null;
    $success = 0;

    // 20070605 MLA added for restricted error
    $plugin =& JPluginHelper::getPlugin(‘authentication’, ‘ldap’);
    $this->params = new JParameter( $plugin->params );

    // LDAP does not like Blank passwords (tries to Anon Bind which is bad)
    if ($password == “”)
    {
    $response->status = JAUTHENTICATE_STATUS_FAILURE;
    $response->error_message = ‘LDAP can not have blank password’;
    return false;
    }

    $ldap_email = $this->params->get(‘ldap_email’);
    $ldap_fullname = $this->params->get(‘ldap_fullname’);
    $ldap_uid = $this->params->get(‘ldap_uid’);
    $auth_method = $this->params->get(‘auth_method’);

    Thanks again.

    Michael Casha Friend
    #221517

    hmm.. not sure, but it is LDAP causing the problem though.

    blueskies Friend
    #221529

    What are the chances my hosting service doesn’t use LDAP for authentication requests (I barely know what it stands for ;)?

    What is different between say rhuk_milkyway (default) or beez themes (which work) and the ja_mercury theme or any of the ja_themes (which fail) that would cause this symptom?

    Thanks much!

    ixware Friend
    #222526

    Hi I’m experiencing the exact same problem with the Xenia template on 1,5 beta 2

    Restricted access
    Warning: mysql_real_escape_string(): 44 is not a valid MySQL-Link resource in C:wampwwwwebsitelibrariesjoomladatabasedatabasemysql.php on line 169

    Warning: mysql_real_escape_string(): 44 is not a valid MySQL-Link resource in C:wampwwwwebsitelibrariesjoomladatabasedatabasemysql.php on line 169

    Warning: mysql_real_escape_string(): 44 is not a valid MySQL-Link resource in C:wampwwwwebsitelibrariesjoomladatabasedatabasemysql.php on line 169

    What to do??

    swemmel Friend
    #222532

    andronopoulos;13636OK fixed……

    Hi Andronopoulus,

    Please share how you fixed it, so other members with the same problem know how to do it.

    Thanx,
    Peter

    Michael Casha Friend
    #222546

    Could I please ask that all the unlicensed members posting here post a new message in the members restricted forums please.

    ixware Friend
    #225615

    <em>@MiCCAS 18782 wrote:</em><blockquote>Could I please ask that all the unlicensed members posting here post a new message in the members restricted forums please.</blockquote>

    I AM a member, BUT somewhere along the registration process something must have gone wrong! I can’t view any of the Members topics!! Can you help me?

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 5 voices, and was last updated by  ixware 16 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum