-
AuthorPosts
-
Ian Friend
Ian
- Join date:
- April 2007
- Posts:
- 158
- Downloads:
- 32
- Uploads:
- 3
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
April 23, 2007 at 9:55 am #119846i have this message Restricted access and i can’t see my site
some help pls!!!Ian FriendIan
- Join date:
- April 2007
- Posts:
- 158
- Downloads:
- 32
- Uploads:
- 3
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
April 23, 2007 at 10:25 am #218691OK fixed……
June 5, 2007 at 4:49 am #221510I’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 169Any help would be appreciated.
Michael Casha FriendMichael Casha
- Join date:
- September 2014
- Posts:
- 2561
- Downloads:
- 1
- Uploads:
- 32
- Thanks:
- 41
- Thanked:
- 119 times in 1 posts
June 5, 2007 at 8:05 am #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 169Any 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>June 5, 2007 at 9:08 am #221516Thanks 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 FriendMichael Casha
- Join date:
- September 2014
- Posts:
- 2561
- Downloads:
- 1
- Uploads:
- 32
- Thanks:
- 41
- Thanked:
- 119 times in 1 posts
June 5, 2007 at 9:21 am #221517hmm.. not sure, but it is LDAP causing the problem though.
June 5, 2007 at 1:28 pm #221529What 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!
June 21, 2007 at 2:08 pm #222526Hi 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 169Warning: 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 Friendswemmel
- Join date:
- February 2006
- Posts:
- 794
- Downloads:
- 34
- Uploads:
- 53
- Thanks:
- 36
- Thanked:
- 64 times in 1 posts
June 21, 2007 at 4:39 pm #222532andronopoulos;13636OK fixed……
Hi Andronopoulus,
Please share how you fixed it, so other members with the same problem know how to do it.
Thanx,
PeterMichael Casha FriendMichael Casha
- Join date:
- September 2014
- Posts:
- 2561
- Downloads:
- 1
- Uploads:
- 32
- Thanks:
- 41
- Thanked:
- 119 times in 1 posts
June 21, 2007 at 10:46 pm #222546Could I please ask that all the unlicensed members posting here post a new message in the members restricted forums please.
July 30, 2007 at 11:41 am #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?
-
AuthorPosts
This topic contains 11 replies, has 5 voices, and was last updated by ixware 17 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum