vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   urgent help with php error (https://vborg.vbsupport.ru/showthread.php?t=201061)

GTX2 01-08-2009 11:57 AM

urgent help with php error
 
Hello,

I need some help here.
when some user tries to change their email address in usercp, there are some errors appearing:

Quote:

Parse error: syntax error, unexpected ',', expecting ']' in /home/b0x/public_html/profile.php(349) : eval()'d code on line 1
and

Quote:

"Fatal error: Call to a member
function query_first() on a non-object in
/home/b0x/public_html/register.php(2225) : eval()'d code on line 16".

I'm running my forum for a long time, and only today this was reported to me.
Is there any help you can give me to fix this? There should be something i put for mistake like a "," or something similar i can't find.

Thanks

Lynne 01-08-2009 02:00 PM

What is on line 349 of your profile.php file? And what is on line 2225 of your register.php file? My guess is they are hooks and so this error is being caused by a modification. You can try disabling your mods and see if you still have this error.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 


GTX2 01-08-2009 03:29 PM

adding that line to the config.php file and disabling all hacks didn't solve the problem.



My register.php line 2225 is:

PHP Code:

                ($hook vBulletinHook::fetch_hook('register_activate_process')) ? eval($hook) : false


and my profile.php line 349 has got:

PHP Code:

                eval(print_standard_redirect('redirect_updatethanks_newemail'truetrue)); 

thanks for helping

Lynne 01-08-2009 04:09 PM

Sometimes in order to disable a mod, you also have to remove the files that come with the mod. I'd look for any modification you have installed that uses the register_activate_process hook location and read the install/uninstall instructions and completely uninstall it and see if that fixes things.


All times are GMT. The time now is 01:20 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.01678 seconds
  • Memory Usage 1,723KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (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