Recent Topics

1 Dec 31, 2006 04:58    

Hi,

I'm running b2evo 1.8.6 as a fresh install, and everything works.

Well, not everything...
when logging out or in, clicking a profile or subscribing to email notification, i get an error 406 not acceptable, with error description "An appropriate representation of the requested resource [...] could not be found on this server."

I think the problem is caused by the redirects in the url. If I delete the redirect, the action works properly.

e.g. the original url is
<http://blog.pgs-info.de/htsrv/login.php?action=logout&redirect_to=http%3A%2F%2Fblog.pgs-info.de%2Findex.php%3Fblog%3D6%26amp%3Bpaged%3D1%26amp%3Bpage%3D1>
which fails, but if i use <http://blog.pgs-info.de/htsrv/login.php> the file is properly displayed.

Does anyone have an idea how this problem can be solved?

TIA + regards, pgs

3 Dec 31, 2006 17:09

Thanks. Well, it seems to be corected in 1.9.*, but since those are beta, i won't use them. On the other hand, the manual correction is taking too much time to try and error...
So, until a fixed stable version, I am going to manually correcgt the URL. I am the only user of my blog, so this improvistaion is acceptable.

Regards, pgs

4 Dec 31, 2006 18:31

If you're the only user you can (probably) cheat by adding the links manually in your _main.php

if( !empty( $current_User ) )
{
echo '<li><a href="'.$htsrv_url.'/login.php?action=logout">Logout</a></li>';
echo '<li><a href="/?disp=profile">Profile</a></li>';
echo '<li><a href="/?disp=subs">Subscriptions</a></li>';
}

...ish

¥

5 Jan 01, 2007 13:05

Thank you, good idea.

The solution is indeed to change the code in main.php.

I replaced

<div class="bSideItem">
	<h3><?php echo T_('Account') ?></h3>
	<ul>  
	<?php 
	user_login_link( '<li>', '</li>' ); 
	user_register_link( '<li>', '</li>' ); 
	user_admin_link( '<li>', '</li>' ); 
	user_profile_link( '<li>', '</li>' ); 
	user_subs_link( '<li>', '</li>' );
	user_logout_link( '<li>', '</li>' ); 
	?>
	</ul>
	</div>

with

<div class="bSideItem">
	<h3><?php echo T_('Account') ?></h3>
	<ul>  
	<?php 
	if( !empty( $current_User ) ) 
{ 
echo '<li><a href="'.$htsrv_url.'/login.php?action=logout">Logout</a></li>'; 
echo '<li><a href="/?disp=profile">Profil</a></li>'; 
echo '<li><a href="/?disp=subs">Abonnieren</a></li>'; 
} 
	
if( empty( $current_User ) ) 
{ 
echo '<li><a href="'.$htsrv_url.'/login.php?action=login">Login...</a></li>'; 
} 
	?>
	</ul>
	</div>

regards, pgs

6 Jan 01, 2007 13:14

You could reduce your code slightly, as there's no need to check twice :-

<div class="bSideItem">
   <h3><?php echo T_('Account') ?></h3>
   <ul> 
   <?php
   if( empty( $current_User ) )
{// user is not logged in
echo '<li><a href="'.$htsrv_url.'/login.php?action=login">Login...</a></li>';
}
else
{// user is logged in
echo '<li><a href="'.$htsrv_url.'/login.php?action=logout">Logout</a></li>';
echo '<li><a href="/?disp=profile">Profil</a></li>';
echo '<li><a href="/?disp=subs">Abonnieren</a></li>';
}
   ?>
   </ul>
   </div>

¥


Form is loading...