help - Restricted access

  • Brownstone
  • Avatar de Brownstone Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
16 anos 5 meses atrás #6125 por Brownstone
Brownstone created the topic: help - Restricted access
boas tarde, to começando a mexe com site e me agradei com o Joomla, instalei o WAMPSERVER e Joomla 1.5.10 no meu pc pra mim trabalha no site offline. axei um template na net que vai servir blz pro que eu to planejando. mas dpois de instalado o template aparece só aparece a menssagem "Restricted access". dei umas lidas na net e o pessoal fala pra escluir essa linha: " <?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?> "..... que eh a primeira do código fonte. exclui ela e só aparece a menssagem " Fatal error: Using $this when not in object context in C:\wamp\www\network\index.php on line 2 ".
obs: testei mais 4 templates e todos deram "Restricted Access" no site dizia que era pra 1.5 então axo que a versão nun eh o problema
o código:
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<!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; ?>" >

<head>

<jdoc:include type="head" />

<?php require("head_includes.php"); ?>


<style type="text/css">
.style1 {
	color: #808000;
}
</style>


</head>


<body>
    <div id="left_border">
        <div id="right_border">
            <div id="bottom">
                <div id="bottom_right"> 
                    <div id="bottom_left">
                    	<div id="container">
 
                                <div id="banner_out">
                              
                                <div id="banner_in">
									<?php if($this->countModules('banner')) : ?>
                                    	<div id="banner"><jdoc:include type="module" name="banners" style="xhtml" /></div>
                                    <?php endif; ?>
                                    <div class="sitetitle"><?php echo $mainframe->getCfg('sitename');?></div>
                                </div>           
                            </div>
                            <div id="header"> 
                                <div id="pathway"><jdoc:include type="module" name="breadcrumbs" /></div>
                            
                                <?php if($this->countModules('user4')) : ?>
                                <div id="search_out">
                                	<div id="search"><jdoc:include type="modules" name="user4" style="xhtml" /></div>
                                </div>
							  <?php endif; ?>
                            </div>

                            <div id="topmenu_out">
                                <div id="topmenu_left">
                                    <div id="topmenu_right">
                                    	<div id="topmenu"><jdoc:include type="modules" name="user3" style="xhtml" /></div>    
                                    </div>
                                </div>
                            </div>
                            <div id="maincontent">
								<?php if($this->countModules('left')) : ?>
                                	<div id="left_out"><jdoc:include type="modules" name="left" style="rounded" /></div>
                                <?php endif; ?>
                                <?php if($this->countModules('right')) : ?>
                                	<div id="right_out"><jdoc:include type="modules" name="right" style="rounded" /></div>
                                <?php endif; ?>
                                <div id="content_out<?php echo $contentwidth; ?>">
									<?php if($this->countModules('user1 or user2')) : ?>
                                        <div class="user_bg">
                                            <div class="user_left">
                                                <div class="user_right">
													<?php if($this->countModules('user1')) : ?>
                                                        <div class="topmodule_user<?php echo $topuserwidth; ?>">
                                                        	<div class="user_inside1"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
                                                        </div>
                                                    <?php endif; ?>
                                                    <?php if($this->countModules('user2')) : ?>
                                                        <div class="separator"></div>
                                                        <div class="topmodule_user<?php echo $topuserwidth; ?>">
                                                        	<div class="user_inside"><jdoc:include type="modules" name="user2" style="xhtml" /></div>
                                                        </div>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endif; ?>
                                    <div id="top">
                                        <jdoc:include type="modules" name="top" style="xhtml" />
                                    </div>
                                    <div id="content">                                    
                                        <div id="content_border_right">
                                            <div id="content_border_left">
                                                <div id="content_bottom_right">
                                                	<div id="content_bottom_left"><jdoc:include type="component" /></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clr"></div>
							<?php if($this->countModules('user5 or user6 or user7')) : ?>
                            <div id="user_bottom">
                                    <div class="user_bg">
                                        <div class="user_left">
                                            <div class="user_right">
												<?php if($this->countModules('user5')) : ?>
                                                    <div class="bottom_user<?php echo $userwidth; ?>">
                                                    	<div class="user_inside1"><jdoc:include type="modules" name="user5" style="xhtml" /></div>
                                                    </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('user6')) : ?>
                                                    <div class="separator"></div>
                                                    <div class="bottom_user<?php echo $userwidth; ?>">
                                                    	<div class="user_inside"><jdoc:include type="modules" name="user6" style="xhtml" /></div>
                                                    </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('user7')) : ?>
                                                    <div class="separator"></div>
                                                    <div class="bottom_user<?php echo $userwidth; ?>">
                                                    	<div class="user_inside"><jdoc:include type="modules" name="user7" style="xhtml" /></div>
                                                    </div>
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    </div>
                            	</div>
							<?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        <div id="footer">
            <div id="othermenu">
                <div id="othermenu_in"><jdoc:include type="modules" name="footer" style="xhtml" /></div>
            </div>
            <div id="copy">&copy; Designed by <a href="http://www.lernvid.com" target="_blank">
				<span class="style1">LernVid.com</span></a></div>
        </div>
        </div>
    </div>
    <div id="date"><?php echo JHTML::Date( 'now', '%A, %d.%m.%Y' ); ?></div>
</body>
</html>

Please Entrar ou Registrar to join the conversation.


Mais
16 anos 5 meses atrás #6162 por abobre
abobre replied the topic: Re: help - Restricted access
Bom dia,

Você não deve excluir a linha de comando " <?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?> ", ela serve justamente para não deixar ninguém acessar uma página do joomla direto, todos os componentes, módulos, plugin, templates do joomla tem isso.

Você deve acessar o seu site assim:

[url=http://127.0.0.1/mais]http://127.0.0.1/mais[/url] o diretorio que está instalado o joomla

Não deve acessar assim.

[url=http://127.0.0.1/mais]http://127.0.0.1/mais[/url] o diretorio que está instalado o joomla/templates/nomedotemplatequeestausando

Pois se acessar assim, realmente vai da acesso restrito.

Abraços

Please Entrar ou Registrar to join the conversation.

  • Brownstone
  • Avatar de Brownstone Autor do Tópico
  • Offline
  • JCB! Novato
  • JCB! Novato
Mais
16 anos 5 meses atrás #6165 por Brownstone
Brownstone replied the topic: Re: help - Restricted access
brigadão ae, problema parcialmente resolvido. mas msmo acessando desse jeito continua dando a menssagem:
Fatal error: Using $this when not in object context in C:\wamp\www\network\index.php on line 2

Please Entrar ou Registrar to join the conversation.

Mais
16 anos 5 meses atrás #6321 por Walkus
Walkus replied the topic: Re: help - Restricted access
Brownstone;

Irmão, remova sua instalação e reinstale novamente do zero.

Abç e Sucesso.

[color=#FF0000:1fjd1yw0][b:1fjd1yw0]>>> NÃO RESPONDO[/b:1fjd1yw0] dúvidas por MSN/MP/E-mail, somente em casos de extrema URGÊNCIA <<<[/color:1fjd1yw0][color=#008000:1fjd1yw0] ####[/color:1fjd1yw0] Obrigado
[color=#0000BF:1fjd1yw0]##[/color:1fjd1yw0][color=#8000FF:1fjd1yw0]##[/color:1fjd1yw0][color=#FF00FF:1fjd1yw0]##[/color:1fjd1yw0][color=#FF4040:1fjd1yw0]##[/color:1fjd1yw0][color=#FFBF00:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF00:1fjd1yw0]##[/color:1fjd1yw0][color=#BFFF80:1fjd1yw0]##[/color:1fjd1yw0][color=#8080FF:1fjd1yw0][b:1fjd1yw0]www.[/b:1fjd1yw0][/color:1fjd1yw0][color=#FF0000:1fjd1yw0][b:1fjd1yw0]wa[/b:1fjd1yw0][/color:1fjd1yw0][color=#000000:1fjd1yw0]master[/color:1fjd1yw0][color=#8080FF:1fjd1yw0][b:1fjd1yw0].com.br[/b:1fjd1yw0][/color:1fjd1yw0] [color=#FFFFBF:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF80:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF40:1fjd1yw0]##[/color:1fjd1yw0][color=#FFFF00:1fjd1yw0]##[/color:1fjd1yw0][color=#008000:1fjd1yw0]##[/color:1fjd1yw0]

Please Entrar ou Registrar to join the conversation.

Mais
14 anos 6 meses atrás #45338 por b_m_a_
b_m_a_ replied the topic: Re: help - Restricted access
pessoal eu to tento o mesmo problema....

tava modificando o meu site e derepente aparceu essa mensagem de restricted access...

o indep.php eh mesmo, nao mexi em nada..

como resolver isso??

me judem, eh urgente

Please Entrar ou Registrar to join the conversation.