vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   URGENT: Can not login and want to change/edit style (https://vborg.vbsupport.ru/showthread.php?t=301231)

abdobasha2004 08-15-2013 06:59 PM

URGENT: Can not login and want to change/edit style
 
How can I edit style or change the used one to other using ftp?
I can not login to my forum because I added some wrong code and want to fix it !

Simon Lloyd 08-15-2013 07:06 PM

You cannot do it as suggested, you'd need to upload the tools.php that came with your downloaded copy of vbulletin in the "do not upload folder", you can then gain access to your admincp (in fact even if you have changed a templates code so you cannot login you should still be able to login to www.mysite.com/forum/admincp/index.php and then create a default style with no parent.

abdobasha2004 08-15-2013 07:45 PM

when try to open admincp/tools.php it gives server error
the problem is the files global.js and yUI files are not loading

Lynne 08-15-2013 07:46 PM

Did you try just going directly to your /admincp as Simon suggested?

abdobasha2004 08-15-2013 09:26 PM

yes, after log in it gives that I used all trying options and must wait 15 minutes
this is due to global.js and YUI are not loading properly, I want to log in to make them load

--------------- Added [DATE]1376605719[/DATE] at [TIME]1376605719[/TIME] ---------------

using tools.php it gives :
Deprecated: Assigning the return value of new by reference is deprecated in /home/admin/public_html/vb/includes/class_core.php on line 2516

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/admin/public_html/vb/includes/class_core.php on line 1636

Strict Standards: Non-static method vB_Shutdown::init() should not be called statically, assuming $this from incompatible context in /home/admin/public_html/vb/includes/class_core.php on line 2519

Strict Standards: Non-static method vB_Bitfield_Builder::build_datastore() should not be called statically in /home/admin/public_html/vb/install/init.php on line 189

Strict Standards: Non-static method vB_Bitfield_Builder::init() should not be called statically in /home/admin/public_html/vb/includes/class_bitfield_builder.php on line 227

Strict Standards: Non-static method vB_Bitfield_Builder::build() should not be called statically in /home/admin/public_html/vb/includes/class_bitfield_builder.php on line 233

Strict Standards: Non-static method vB_Bitfield_Builder::init() should not be called statically in /home/admin/public_html/vb/includes/class_bitfield_builder.php on line 89

Strict Standards: Non-static method vB_Bitfield_Builder::init() should not be called statically in /home/admin/public_html/vb/install/init.php on line 191

Deprecated: Assigning the return value of new by reference is deprecated in /home/admin/public_html/vb/includes/functions.php on line 903

Deprecated: Assigning the return value of new by reference is deprecated in /home/admin/public_html/vb/includes/functions.php on line 907

Strict Standards: Non-static method vBulletinHook::init() should not be called statically in /home/admin/public_html/vb/install/init.php on line 212

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/admin/public_html/vb/includes/class_core.php on line 721

--------------- Added [DATE]1376607535[/DATE] at [TIME]1376607535[/TIME] ---------------

or is there any way using ftp to add a file to source code? I will add YUI files just once and login using that page !

Lynne 08-15-2013 11:09 PM

It makes no sense that some files won't load in your admincp because of something you did to your site style. Are you sure that is what is causing the issue?

I would suggest reuploading all default files. You should NOT be getting errors like that when trying to get to your tools.php file.

Do you keep a default style on your site (you should)?If so, you can add &styleid=xx to the end of the URL to use the default style.

abdobasha2004 08-15-2013 11:17 PM

I disabled sessions from style long time ago
when I remove the YUI or globals this problem happen
I did not change anything recently except that !
the other style installed is as the default but under name mobile api
what to write in url &styleid= number or name? I can not exactly remember name it was like vbulletin mobile API

--------------- Added [DATE]1376612623[/DATE] at [TIME]1376612623[/TIME] ---------------

if i use tools.php same problem with customer number !!
I enter custom number then I choose [Reset Cookie Domain] and then asked to enter customer number again ! and so on !

Lynne 08-15-2013 11:43 PM

tools.php is not affected AT ALL by your site style or any modifications at all. It could be affected by any modified files it calls.

You can find your styleids in your database - table: style and look at the styleids listed there.

nerbert 08-16-2013 02:20 AM

I think your hosting service upgraded to a newer version of PHP and your old code needs an earlier version.

Simon Lloyd 08-16-2013 05:52 AM

Quote:

Originally Posted by nerbert (Post 2439110)
I think your hosting service upgraded to a newer version of PHP and your old code needs an earlier version.

Certainly sounds like it. What version of vbulletin are you using and what version of php?

abdobasha2004 08-16-2013 08:46 AM

not php version
I asked my host (Dynaceron) and he managed to log in and to put the YUI js back in head
I was then able to log in !

Simon Lloyd 08-16-2013 09:20 AM

If "HE" managed to login then so you could!!! if it's keeping you out of admincp it would keep him out!

abdobasha2004 08-16-2013 11:55 AM

the problem I think is related to dns change

Simon Lloyd 08-16-2013 02:55 PM

Quote:

Originally Posted by abdobasha2004 (Post 2439139)
not php version
I asked my host (Dynaceron) and he managed to log in and to put the YUI js back in head
I was then able to log in !

Quote:

Originally Posted by abdobasha2004 (Post 2439168)
the problem I think is related to dns change

Which one was it? either he magically was able to log in and replace the code he "said" he did or he sorted out your dns? if it was the latter and he said he'd done the former i'd be inclined to find a host that doesn't lie to me when it's their problem!

Also none of the solutions which you said have taken place would have fixed your deprecated errors, they are purely down to a different version of php or mysql!

abdobasha2004 08-16-2013 06:25 PM

I am using vbulletin 3.7.6 patch 2
PHP version 5.4.17
MySQL 5.1.70-cll

is any thing wrong?

to clear it out, I am responsible for the dns change, I use google page speed just fine, when I use www cname record back to nmisr.com. this error happen

The host did manage ( i do not know how) to login to admin cp even I was on dns nmisr.com., after he made the necessary changes (put YUI in headinclude) I was also able to login even on this dns
do you understand this complicated problem?

Simon Lloyd 08-16-2013 07:11 PM

PHP 5.4.x will only work with the latest version(s) of vbulletin, you'll need to ask your host to roll back to php 5.3.x for your forum and most probably the modifications to work properly.

Lynne 08-16-2013 08:51 PM

It looks like your host upgraded your PHP. Of the vB3 series, only 3.8.8 is compatible with PHP5.4

abdobasha2004 08-17-2013 02:13 PM

I finally managed to solve this problem
I should be using .nmisr.com in vbulletn settings for cookie path domain instead of blank !

I will downgrade any way the php to prevent any future problems

Thanks very much Lynne and Lloyd

--------------- Added [DATE]1376778606[/DATE] at [TIME]1376778606[/TIME] ---------------

IMPORTANT UPDATE :
the problem was not the cookie path domain
It was due to an edit in class_core.php that I made to use the real ip of visitor with Page speed service from Google...
re-uploading class_core.php solved the problem and all other mysteries I was having :)

THANKS AGAIN :)


All times are GMT. The time now is 05:41 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.01409 seconds
  • Memory Usage 1,784KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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