vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can't login or register on one style but can from the other (https://vborg.vbsupport.ru/showthread.php?t=308847)

richy96 02-24-2014 06:16 PM

Can't login or register on one style but can from the other
 
1 Attachment(s)
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 :eek:

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

Much appreciated, cheers
Rich

Simon Lloyd 02-24-2014 07:55 PM

So, if you copied that template and it still didnt work then there's another associated template that you've edited thats causing the issue.
The best thing is to compare the files side by side, using this tool http://www.diffnow.com/ you'll be able to see what's changed where.

It kinda sounds like a cookie issue but i wouldn't swear to it.

Lynne 02-25-2014 12:13 AM

I would check the header, headinclude, and footer templates and make sure all same files are getting called in both styles.

richy96 02-25-2014 05:12 PM

Thanks for the advice

I'll give those suggestions a try and report back

cheers


All times are GMT. The time now is 04:39 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.03156 seconds
  • Memory Usage 1,715KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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