| :: |
| Author |
Message |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
Posted: Sun Oct 21, 2007 12:14 pm Post subject: Problem going to ACP after update from 5a to 7 |
|
|
I'm having problem logging to my acp after update to rc7 using the automatic update package.
The rest of the forum is ok except for the acp. anyone know why? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
Posted: Sun Oct 21, 2007 12:43 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
| it's not working also... seem like the path for the acp page in my case is wrong. guess i may have to re-install the whole forum |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
Posted: Sun Oct 21, 2007 1:15 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
yes i did. the funny thing here is the acp page does not display normal. (display without template.) For example, the top left images path for noral pages is -http://www.thefreeadsforum.com/phpBB/styles/prosilver/imageset/site_logo.gif
but for the acp, it is -http://www.thefreeadsforum.com/styles/prosilver/imageset/site_logo.gif
(missing phpBB)
so i'm trying to find out how come it is missing. worst come to worst, i guess i just have to backup the whole database and install a fresh copy |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Sun Oct 21, 2007 1:47 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
Well not exactly, the link in the source code in the adm/ folder is :
| Code: |
<img src="./../styles/prosilver/imageset/site_logo.gif" width="139" height="52" alt="" title="" /> |
The problem seems to be coming from the fact you still have a :
| Code: | | <base href="http://www.thefreeadsforum.com/phpBB/"> |
there and you should not.
Make sure you have the last version of the phpbb_seo_class.php file, as well as an up to date includes/functions.php files (especially the code change in the page_header() function).
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
Posted: Sun Oct 21, 2007 1:55 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
i just tested it out. guess it got something to do with my php-seo settings. previously got no problem with it when using 5a. only after upgrade to 7 then got problem.
After doing some testing, i find out that if i cleared the cache of php-seo folder, the acp display correctly. but if i set everything to on, this problem arises. still trying to find out which part went wrong in the configuration. but then again, i got no problem previously. i shall do more testing |
|
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sun Oct 21, 2007 2:02 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
update your style to rc7
try this to get into to ACP
open
template/login_body.htm
find
| Code: |
<dt><label for="username">{L_USERNAME}:</label></dt>
<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
|
replace with
| Code: |
<dt><label for="{USERNAME_CREDENTIAL}">{L_USERNAME}:</label></dt>
<dd><input type="text" tabindex="1" name="{USERNAME_CREDENTIAL}" id="{USERNAME_CREDENTIAL}" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
|
find
| Code: |
<dt><label for="password">{L_PASSWORD}:</label></dt>
<dd><input type="password" tabindex="2" id="password" name="password" size="25" class="inputbox autowidth" /></dd>
|
replace with
| Code: |
<dt><label for="{PASSWORD_CREDENTIAL}">{L_PASSWORD}:</label></dt>
<dd><input type="password" tabindex="2" id="{PASSWORD_CREDENTIAL}" name="{PASSWORD_CREDENTIAL}" size="25" class="inputbox autowidth" /></dd>
|
but you should update your style to RC7
becouse it diffrent about any RC before  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Sun Oct 21, 2007 2:04 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
So it really deals with the phpbb_seo_class.php file.
And I think I got it.
It's the virtual root option to cause this.
The base href is outputted in acp because it's using index.php in the adm/ folder, and the virtual root option does add the base href on the regular index.php.
As a first fix, I'd suggest replacing :
| Code: | if ( ($this->seo_opt['virtual_folder'] || $this->seo_opt['virtual_root'] || ( $this->seo_ext['forum'] == '/' ) ) && in_array($this->seo_opt['req_file'], $this->seo_opt['file_hbase'])) {
$this->seo_opt['seo_base_href'] = '<base href="' . $this->seo_path['phpbb_url'] . '">';
} |
with :
| Code: | if ( ($this->seo_opt['virtual_folder'] || $this->seo_opt['virtual_root'] || ( $this->seo_ext['forum'] == '/' ) ) && in_array($this->seo_opt['req_file'], $this->seo_opt['file_hbase']) && !defined('ADMIN_START')) {
$this->seo_opt['seo_base_href'] = '<base href="' . $this->seo_path['phpbb_url'] . '">';
} |
Should be enough, sorry for the inconvenience.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
Posted: Sun Oct 21, 2007 2:05 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
| i'm using the default style and those codes are updated. i tested with a premod rc7 version and the problem arising after i enabled the seo. so trying to find out what's wrong now |
|
|
| Back to top |
|
 |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
Posted: Sun Oct 21, 2007 2:10 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
| dcz wrote: | So it really deals with the phpbb_seo_class.php file.
And I think I got it.
It's the virtual root option to cause this.
The base href is outputted in acp because it's using index.php in the adm/ folder, and the virtual root option does add the base href on the regular index.php.
As a first fix, I'd suggest replacing :
| Code: | if ( ($this->seo_opt['virtual_folder'] || $this->seo_opt['virtual_root'] || ( $this->seo_ext['forum'] == '/' ) ) && in_array($this->seo_opt['req_file'], $this->seo_opt['file_hbase'])) {
$this->seo_opt['seo_base_href'] = '<base href="' . $this->seo_path['phpbb_url'] . '">';
} |
with :
| Code: | if ( ($this->seo_opt['virtual_folder'] || $this->seo_opt['virtual_root'] || ( $this->seo_ext['forum'] == '/' ) ) && in_array($this->seo_opt['req_file'], $this->seo_opt['file_hbase']) && !defined('ADMIN_START')) {
$this->seo_opt['seo_base_href'] = '<base href="' . $this->seo_path['phpbb_url'] . '">';
} |
Should be enough, sorry for the inconvenience.
++ |
it's working fine now!!! Thank a lot. You debug fast Glad to be able to point this out  |
|
|
| Back to top |
|
 |
evacoven
Joined: 08 Oct 2007 Posts: 16
|
Posted: Sun Oct 21, 2007 2:17 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
| and by the way, may i know where can i edit the meta tag generated by the seo script? 'cos i wan to make my meta to xhtml standard. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Sun Oct 21, 2007 2:56 pm Post subject: Re: Problem going to ACP after update from 5a to 7 |
|
|
Jeez, I forgot about this part of the meta update. It's no real big deal, but.
So, look for :
| Code: | | $this->meta['meta_tpl'] = '<meta name="title" content="%s">' . "\n" . '<meta name="description" lang="%s" content="%s">' . "\n" . '<meta name="keywords" content="%s">' . "\n" . '<meta name="category" content="%s">' . "\n" . '<meta name="robots" content="%s">'. "\n" . '<meta name="distribution" content="%s">' . "\n" . '<meta name="resource-type" content="%s" />' . "\n" . '<meta name="copyright" content="%s">'; |
In includes/functions.php
And replace it with :
| Code: | | $this->meta['meta_tpl'] = '<meta name="title" content="%s" />' . "\n" . '<meta name="description" lang="%s" content="%s" />' . "\n" . '<meta name="keywords" content="%s" />' . "\n" . '<meta name="category" content="%s" />' . "\n" . '<meta name="robots" content="%s" />'. "\n" . '<meta name="distribution" content="%s" />' . "\n" . '<meta name="resource-type" content="%s" />' . "\n" . '<meta name="copyright" content="%s" />'; |
should be enough to be valid XHTML.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|