The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 28 posts ] 
Author Message
PostPosted: Tue Apr 10, 2007 12:20 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 10, 2007 12:02 pm
Posts: 10
I'm very new to this CMS stuff so forgive my ignorance.

Here's my problem, when I tried to install joomla to my server I followed all the steps and it appeared to work, I deleted the installation folder, then I tried viewing the site at http://76.162.9.143/index.php but I get this error

"Restricted accessRestricted accessRestricted accessRestricted accessRestricted access
Fatal error: Cannot instantiate non-existent class: database in /hsphere/local/home/stephenf/aquariussound.ie/includes/joomla.php on line 79"

I had the unwritable configuration.php issue but just copied it up manually. Also ixhosting is my host if that makes any difference.

Cheers

Steve


Top
 Profile  
 
PostPosted: Tue Apr 10, 2007 1:33 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 8:55 pm
Posts: 18093
Location: Nijmegen, The Netherlands
Could you check the permissions (CHMOD) of /includes and /includes/joomla.php ?

_________________
Kind Regards,
Peter Martin, Global Moderator - Community Leadership Team
http://www.db8.nl - Joomla specialist, Nijmegen, Nederland
Joomla 2.5 multilanguage in 10 steps: http://www.db8.nl/multilanguage-in-10-steps


Top
 Profile  
 
PostPosted: Tue Apr 10, 2007 4:56 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 10, 2007 4:51 pm
Posts: 1
I have the same problem. :'(
First I put the permission of all directories at the surface to 777, but then I got the warning from the server or host that my maps were writable, so I put them back to 755 and now there is a restricted acces.


Top
 Profile  
 
PostPosted: Tue Apr 10, 2007 11:23 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 10, 2007 12:02 pm
Posts: 10
pe7er wrote:
Could you check the permissions (CHMOD) of /includes and /includes/joomla.php ?


Can I do that myself or do I need to ask my hosting company to do it?

Cheers

Steve


Top
 Profile  
 
PostPosted: Wed Apr 11, 2007 10:54 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 8:55 pm
Posts: 18093
Location: Nijmegen, The Netherlands
You can do that in FTP software (e.g. FileZilla).

Or ask your host...

Another thing you could check: Could you check if all necessary Joomla files are on the server?
Joomla Diagnostics is a helpful tool to check if all Joomla files have been uploaded correctly
http://extensions.joomla.org/component/ ... Itemid,35/

_________________
Kind Regards,
Peter Martin, Global Moderator - Community Leadership Team
http://www.db8.nl - Joomla specialist, Nijmegen, Nederland
Joomla 2.5 multilanguage in 10 steps: http://www.db8.nl/multilanguage-in-10-steps


Top
 Profile  
 
PostPosted: Wed Apr 11, 2007 11:07 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 10, 2007 12:02 pm
Posts: 10
Thanks for your help Peter,

It's working now. I deleted the installation and started from scratch. This time I got my hosting company to fix all the permission before I went through the install steps.

Cheers

Steve


Top
 Profile  
 
PostPosted: Wed Apr 11, 2007 11:56 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 8:55 pm
Posts: 18093
Location: Nijmegen, The Netherlands
You're welcome!


PS: Could you please mark your first message in this thread as "solved" ?
(Modify the first message and choose the Message Icon [solved] Image).
This way the list of messages shows that the question has been solved, and other users can benefit from it.

_________________
Kind Regards,
Peter Martin, Global Moderator - Community Leadership Team
http://www.db8.nl - Joomla specialist, Nijmegen, Nederland
Joomla 2.5 multilanguage in 10 steps: http://www.db8.nl/multilanguage-in-10-steps


Top
 Profile  
 
PostPosted: Wed Jul 16, 2008 7:26 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jul 16, 2008 7:15 am
Posts: 9
Hi !!

I am new bie to Joomla !!! I just transferred joomla1.0 in my own server!! I got error message..

- Restricted accessRestricted accessRestricted accessRestricted accessRestricted access

can u explain!! what r the file shud i change permission !!

But now changed permission in some folder
administrator/
cache/
images/
includes/
media/
templates/
mambots/
language/
modules/

even i got same error messgae !!!!


Top
 Profile  
 
PostPosted: Thu Jul 24, 2008 6:47 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Apr 06, 2007 2:40 pm
Posts: 21
I was following some instructions to diagnose problems accessing some areas of my site using the diagnotics tool. Here's the information I tried to follow:

REGISTER GLOBALS EMULATION

By default, Joomla will emulate register_globals = on, to not brake backwards compatibility with older components, modules or plugins. This will cause the same security issues as using normal register_globals on. You can turn this off however.

Open globals.php located in the root of your joomla installation. Search for:

define( 'RG_EMULATION', 1 );

and change it to:

define( 'RG_EMULATION', 0 );

That should keep you a bit safer against attacks.

-----------------------------------------------------------------------------------

The problem: After changing the global.php from ( 'RG_EMULATION', 1 ); to ( 'RG_EMULATION', 0 );, I now get this error when trying to access my login:

Restricted Access

I changed it back to ( 'RG_EMULATION', 1 ); but still cannot get into my control panel. When I go to mysite/administrator/index2.php, I get the login page and can imput my login and password. That's when I get the Restricted Access message. To my knowledge, the globals.php file is the only one I changed. I've even copied what I believe was the original globals.php file back to the root directory but continue to get the Restricted Access. Any Idea what I could have done wrong?

Here's my actual gobals.php file content that's on the server:

<?php
/**
* @version $Id: globals.php 4675 2006-08-23 16:55:24Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software and parts of it may contain or be derived from the
* GNU General Public License or other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

/**
* Use 1 to emulate register_globals = on
* WARNING: SETTING TO 1 MAY BE REQUIRED FOR BACKWARD COMPATIBILITY
* OF SOME THIRD-PARTY COMPONENTS BUT IS NOT RECOMMENDED
*
* Use 0 to emulate regsiter_globals = off
* NOTE: THIS IS THE RECOMMENDED SETTING FOR YOUR SITE BUT YOU MAY
* EXPERIENCE PROBLEMS WITH SOME THIRD-PARTY COMPONENTS
*/
define( 'RG_EMULATION', 0 );

/**
* Adds an array to the GLOBALS array and checks that the GLOBALS variable is
* not being attacked
* @param array
* @param boolean True if the array is to be added to the GLOBALS
*/
function checkInputArray( &$array, $globalise=false ) {
static $banned = array( '_files', '_env', '_get', '_post', '_cookie', '_server', '_session', 'globals' );

foreach ($array as $key => $value) {
$intval = intval( $key );
// PHP GLOBALS injection bug
$failed = in_array( strtolower( $key ), $banned );
// PHP Zend_Hash_Del_Key_Or_Index bug
$failed |= is_numeric( $key );
if ($failed) {
die( 'Illegal variable <b>' . implode( '</b> or <b>', $banned ) . '</b> passed to script.' );
}
if ($globalise) {
$GLOBALS[$key] = $value;
}
}
}

/**
* Emulates register globals = off
*/
function unregisterGlobals () {
checkInputArray( $_FILES );
checkInputArray( $_ENV );
checkInputArray( $_GET );
checkInputArray( $_POST );
checkInputArray( $_COOKIE );
checkInputArray( $_SERVER );

if (isset( $_SESSION )) {
checkInputArray( $_SESSION );
}

$REQUEST = $_REQUEST;
$GET = $_GET;
$POST = $_POST;
$COOKIE = $_COOKIE;
if (isset ( $_SESSION )) {
$SESSION = $_SESSION;
}
$FILES = $_FILES;
$ENV = $_ENV;
$SERVER = $_SERVER;
foreach ($GLOBALS as $key => $value) {
if ( $key != 'GLOBALS' ) {
unset ( $GLOBALS [ $key ] );
}
}
$_REQUEST = $REQUEST;
$_GET = $GET;
$_POST = $POST;
$_COOKIE = $COOKIE;
if (isset ( $SESSION )) {
$_SESSION = $SESSION;
}
$_FILES = $FILES;
$_ENV = $ENV;
$_SERVER = $SERVER;
}

/**
* Emulates register globals = on
*/
function registerGlobals() {
checkInputArray( $_FILES, true );
checkInputArray( $_ENV, true );
checkInputArray( $_GET, true );
checkInputArray( $_POST, true );
checkInputArray( $_COOKIE, true );
checkInputArray( $_SERVER, true );

if (isset( $_SESSION )) {
checkInputArray( $_SESSION, true );
}

foreach ($_FILES as $key => $value){
$GLOBALS[$key] = $_FILES[$key]['tmp_name'];
foreach ($value as $ext => $value2){
$key2 = $key . '_' . $ext;
$GLOBALS[$key2] = $value2;
}
}
}

if (RG_EMULATION == 0) {
// force register_globals = off
unregisterGlobals();
} else if (ini_get('register_globals') == 0) {
// php.ini has register_globals = off and emulate = on
registerGlobals();
} else {
// php.ini has register_globals = on and emulate = on
// just check for spoofing
checkInputArray( $_FILES );
checkInputArray( $_ENV );
checkInputArray( $_GET );
checkInputArray( $_POST );
checkInputArray( $_COOKIE );
checkInputArray( $_SERVER );

if (isset( $_SESSION )) {
checkInputArray( $_SESSION );
}
}
?>


Top
 Profile  
 
PostPosted: Wed Aug 06, 2008 10:35 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 08, 2008 11:20 pm
Posts: 19
Location: Orlando, FL
eratl wrote:
I was following some instructions to diagnose problems accessing some areas of my site using the diagnotics tool. Here's the information I tried to follow:

REGISTER GLOBALS EMULATION

By default, Joomla will emulate register_globals = on, to not brake backwards compatibility with older components, modules or plugins. This will cause the same security issues as using normal register_globals on. You can turn this off however.

Open globals.php located in the root of your joomla installation. Search for:

define( 'RG_EMULATION', 1 );

and change it to:

define( 'RG_EMULATION', 0 );

That should keep you a bit safer against attacks.

-----------------------------------------------------------------------------------

The problem: After changing the global.php from ( 'RG_EMULATION', 1 ); to ( 'RG_EMULATION', 0 );, I now get this error when trying to access my login:

Restricted Access

I changed it back to ( 'RG_EMULATION', 1 ); but still cannot get into my control panel. When I go to mysite/administrator/index2.php, I get the login page and can imput my login and password. That's when I get the Restricted Access message. To my knowledge, the globals.php file is the only one I changed. I've even copied what I believe was the original globals.php file back to the root directory but continue to get the Restricted Access. Any Idea what I could have done wrong?
. . . . .


If you intend to stay with 1.0.x version series, you really should upgrade to 1.0.15. It's fast and simple. This problem will in all likelihood then go away. In 1.0.15 definition of globals emulation is handled by configuration.php instead of globals.php. It was a meaningful change.

seraaj


Top
 Profile  
 
PostPosted: Mon Jan 05, 2009 1:42 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 05, 2009 1:17 pm
Posts: 6
I have the same problem, now i am only able to access the website by ftp, but I am a beginner I don't know what to modify...


Top
 Profile  
 
PostPosted: Mon Jan 05, 2009 1:43 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 05, 2009 1:17 pm
Posts: 6
I changed the permissions but the problem remains the same


Top
 Profile  
 
PostPosted: Mon Jan 12, 2009 7:13 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat May 17, 2008 6:52 pm
Posts: 31
Location: Ecuador
I got the same problem after the disable of the System - Legacy plugin. I had to enable it again even though I don't use joomla 1.0.x components, modules and plugins anymore. Somebody knows what to do to disable this function?


Top
 Profile  
 
PostPosted: Tue Feb 03, 2009 9:43 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Feb 03, 2009 9:35 pm
Posts: 1
Hi Every1,

I've got a huge problem. I now have this Restricted Access on my site. Tonight i installed RokBox and when i enabled it i recevied this Restricted Access on both the Front end and in the back end? The only access i've got to the site is through FTP.

How can i fix this?

I've put alot of work into it, writing loads of articles, if i have to re-install am i going to loose all the work i've done?

Please help!
Chloe ~X~


Top
 Profile  
 
PostPosted: Tue Feb 03, 2009 11:13 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat May 17, 2008 6:52 pm
Posts: 31
Location: Ecuador
I resolved this problem by deactivating the legacy plugin and uninstalling all the modules, componentes and plugins that are not compatible with joomla 1.5.x. If you can't access to admin cpanel then delete the folder of RokBox via FTP that should work.

Remember to make a backup of your files and database before do that.


Top
 Profile  
 
PostPosted: Wed Feb 04, 2009 8:23 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Oct 30, 2008 4:41 pm
Posts: 3
What if i can't find the RokBox folders using FTP?


Top
 Profile  
 
PostPosted: Wed Feb 04, 2009 8:49 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Oct 30, 2008 4:41 pm
Posts: 3
Hi There,

Thankyou i have deleted the RokBox and now have my site back.

How do i upgrade the version of joomla to v1.5? Would i loose the work i have done so far?

Thanks,
Chloe ~X~


Top
 Profile  
 
PostPosted: Wed Feb 04, 2009 8:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat May 17, 2008 6:52 pm
Posts: 31
Location: Ecuador
Please, review this documentation:

http://docs.joomla.org/Do_you_have_to_u ... la!_1.5%3F
http://docs.joomla.org/How_do_you_upgra ... la!_1.5%3F
http://docs.joomla.org/Upgrade_Instructions

Regards,


Top
 Profile  
 
PostPosted: Thu Feb 05, 2009 7:09 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Feb 05, 2009 11:26 am
Posts: 23
follow the docs & make it a habit to backup atleast once a day.. or put some cron job...

_________________
If I have ever helped U or even if I haven't (The Joomla! Masters) U can indirectly support my education. Plz link me from Ur site or add me to Ur Blogroll or both. I desperately need it. Anchor Text: Web Hosting , URL - http://hostingwebsitecoupons.com


Top
 Profile  
 
PostPosted: Fri Feb 06, 2009 12:00 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Aug 27, 2008 11:52 am
Posts: 8
Hello everybody!

I am building a component in joomla 1.5

I am using a external php file to export HTML to Excel. The problem is in this php file:
I get the message 'Restricted access' everytime i try to use it, the problem is in this line in the begining:

$path = getcwd();
require_once( $path.'/libraries/joomla/import.php' );


I made sure every folder has permissions (777) but i still get 'Restricted access' :(

Does anybody know how to fix it?? Thank uuuuuuuuuuu!


Top
 Profile  
 
PostPosted: Tue Jul 28, 2009 8:06 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 16, 2009 1:42 pm
Posts: 32
Hi, I can only have access to my webpage by FTP... Ireally don't know how to fix it... any idea??

_________________
http://www.nedivektraskt.com/


Top
 Profile  
 
PostPosted: Sun Dec 20, 2009 11:01 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Dec 20, 2009 9:53 pm
Posts: 1
Need some help here please i've just created a template install in to Joomla 1.5 successfully and when i go to preview the file i am getting restricted access.

I'm not using FTP i'm using localhost


Top
 Profile  
 
 Post subject: Re: Restricted access
PostPosted: Fri Jan 29, 2010 12:43 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jan 29, 2010 12:08 pm
Posts: 1
I've got a brand new vanilla installation on Localhost (Xampp) and I can log in to the admin control panel, but many options, though not all, give the 'Restricted Access' message. What should I do?
(Joomla 1.5 XP Sp3)


Top
 Profile  
 
PostPosted: Fri Mar 12, 2010 3:26 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 12, 2010 3:21 pm
Posts: 5
I use Firefox instead of IE, and the problem solved! I'm not professional so i don't know why. But it solved in my case. Hope this help you

_________________
A vasectomy means never having to say you're sorry :) :) -- Anonymous
http://langbian.net


Top
 Profile  
 
PostPosted: Fri Mar 12, 2010 3:57 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 12, 2010 3:53 pm
Posts: 10
hello guys,
please help me out,i'm new o joomla.i'm getting these errors while trying to install joomla on wamp server

Apache Version :2.2.11
PHP Version :5.3.0
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/wamp/www/Joomla_1.5.15-Stable-Full_Package/index.php' (include_path='.;C:\php5\pear') in Unknown on line 0

thanks in advance,
vinay


Top
 Profile  
 
PostPosted: Wed Jul 21, 2010 12:47 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 27, 2010 8:31 pm
Posts: 4
I changed the footer and not I am getting restricted access.

here's the code

<?php
/**
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

defined('_JEXEC') or die('Restricted access');
$url = clone(JURI::getInstance());
$path = $this->baseurl.'/templates/'.$this->template;
$showLeftColumn = ($this->countModules('left'));
if(JRequest::getCmd('task') != 'edit') $Edit = false; else $Edit = true ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $path ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $path ?>/css/constant.css" type="text/css" />
</head>
<body id="body">
<div class="main">
<div id="logo">
<a href="<?php echo $_SERVER['PHP_SELF']?>" class="logo"><img src="<?php echo $path ?>/images/logo.jpg" alt="" /></a>
</div>
<div id="topmenu">
<jdoc:include type="modules" name="user3" style="topmenu" />
</div>
<div id="wrapper">
<div class="corner-top-right">
<div class="corner-bottom-left">
<div class="corner-bottom-right">
<div class="width clr">
<?php if ($showLeftColumn && !$Edit) : ?>
<div id="left">
<div class="space">
<jdoc:include type="modules" name="left" style="user" />
</div>
</div>
<?php endif; ?>
<div class="container">
<div class="width">
<jdoc:include type="modules" name="user5" />
<jdoc:include type="modules" name="user1" style="user2" />
<?php if ($this->getBuffer('message')) : ?>
<div class="error err-space">
<h2><?php echo JText::_('Message'); ?></h2>
<jdoc:include type="message" />
</div>
<?php endif; ?>
<div class="indent">
<div class="width">
<jdoc:include type="component" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="space">
<?php echo JText::_('Powered by') ?> Blubox Design
</div>
</div>
</div>
</body>
</html>

can anyone help?


Top
 Profile  
 
PostPosted: Sat Nov 06, 2010 12:22 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 13, 2010 2:27 am
Posts: 16
I have been working on a site all afternoon. All was fine until I tried to insert the favicon.ico into the index.php and update the server file. Now I have 'restricted access' when I try to log in to http://www.toyswithpizzazz.com.au/. I have removed the favicon.ico from the server and also taken out the reference in index.php however I still can't access my site publicly.

It is Joomla 1.5.20 version.

I had not done a back-up as I was finishing off working on some changes. I am hopeful that I won't lose everything I've done.

I am new to Joomla so any help would be seriously appreciated. :'(


Top
 Profile  
 
PostPosted: Thu Oct 27, 2011 11:38 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Apr 01, 2011 9:40 pm
Posts: 17
I have been working with a new site and in my dev server with the same conditions I don't have the restricted access problem.

I used akeeba backup to get the files ready to move to another server. Once everything is up and running if I try to use joomfish I get the restricted access message. Do I need to reinstall joomfish or just CHMOD my components folder?

This is driving me crazy.
Any help is appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ] 



Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group