View Single Post
  #1  
Old 02-24-2014, 06:16 PM
richy96's Avatar
richy96 richy96 is offline
 
Join Date: Apr 2008
Location: England
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't login or register on one style but can from the other

Hi guys

I have two styles that I am using

One for my 'classic' layout the other for a 'mobile' layout

The problem I am up against at the moment is that I can't log in or register from the mobile style (styleid=10)

If I log in on the 'classic' style (id8) that is fine and then I can switch to the mobile style and use that without problems

so url/index.php?styleid=8 is fine
url/index.php?styleid=10 you can't log in or register

Later I was hoping to put a user agent in global.php or index.php so that visitors comng with mobile devices get set to the mobile style automatically (at least most of the time) but I need to sort this problem first.

The login is via welcomeblocklogin.php which is the same file in both styles
The template for the login module is adv_portal_welcomeblock_frontpage on both styles.
I can't see any difference in these templates in the two styles, but I copied the template from style 8 (the good one) to style 10 and it made no difference

The error screen I get is attached - I get the same error page whether I click Login or Register in style 10 (but coming from login.php or register.php

It's almost like there is something wrong with the permissions to view these page in one of the styles (like guests can not view them so they can't register or log in?) but after spending a few hours on this I can't figure it out

The error message is a bit nonesensical in as much it is complaining I am not logged in while I am trying to register!!

It will almost certainly turn out to be something I have done

Could someone point me in the right direction to diagnose this problem?

Much appreciated, cheers
Rich
Attached Images
File Type: jpg nologon.jpg (52.4 KB, 0 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03419 seconds
  • Memory Usage 1,778KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete