vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   URL after login or logout is http://[forumhome]/Array (https://vborg.vbsupport.ru/showthread.php?t=81924)

greenhybrid 05-23-2005 10:26 PM

URL after login or logout is http://[forumhome]/Array
 
Somehow I managed to mess up the redirect URLs after a login or logout to be greenhybrid.com/discuss/Array instead of the appropriate file. I really have no idea how this happened, but there's obviously a PHP problem somewhere. Any idea what to do? Thanks.

Adrian Schneider 05-23-2005 10:43 PM

You are missing a the [...] it looks like, I'm not sure what it is though, which file did you edit?

greenhybrid 05-23-2005 11:02 PM

lol exactly. No idea ;)

Zero Tolerance 05-23-2005 11:31 PM

Re-upload the original login.php and see if that fixes it :)

- Zero Tolerance

greenhybrid 05-26-2005 12:10 AM

Uploaded the original login.php to no avail. What else could this be?

Marco van Herwaarden 05-26-2005 05:11 AM

Try reverting your navbar template, or create a new style and see if the same happens when using this new style.

greenhybrid 05-26-2005 05:17 AM

Well, it isn't a template issue. Just logging into the admin panel has the problem, too. After the "Coming right up!" message is a 404.

greenhybrid 05-28-2005 06:02 PM

I think this is the function that's messing up. Any idea why it would return with an array?
PHP Code:

function fetch_replaced_session_url($url)
{
    
// replace the sessionhash in $url with the current one
    
global $session;

    
$url addslashes($url);
    
$url fetch_removed_sessionhash($url);

    if (
$session['sessionurl'] != '')
    {
        if (
strpos($url'?') !== false)
        {
            
$url .= "&$session[sessionurl]";
        }
        else
        {
            
$url .= "?$session[sessionurl]";
        }
    }

    return 
$url;



Marco van Herwaarden 05-29-2005 10:01 AM

I doubt that this is causing your problem.

greenhybrid 05-29-2005 12:41 PM

Any idea what it could be, then?

This also happens after sending out an email. The email sends, but it goes to this 404

All fixed. *phew*

I added a few lines of code to automatically switch the style depending on which directory of the site one was one, but I used a variable $url which was, apparently, already in use.


All times are GMT. The time now is 08:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01745 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete