vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Upgrade problem (https://vborg.vbsupport.ru/showthread.php?t=180501)

maestrodamuz 05-25-2008 09:30 PM

Upgrade problem
 
I am trying to upgrade from vbulletin 3.5.4 to 3.7.0. But i have been getting this error since I began

Code:

Step 1) Upgrade to vBulletin 3.5.5 Complete!

Fatal error: Cannot redeclare delete_product() (previously declared in /var/www/html/forumsUPG/includes/adminfunctions.php:3180) in /var/www/html/forumsUPG/includes/adminfunctions_plugin.php on line 48

Please can I get some help?:(

Lynne 05-25-2008 09:53 PM

Try disabling your plugins through the config file perhaps? Edit config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 


Opserty 05-25-2008 10:02 PM

Also ensure you have overwritten the old files with a copy of the new 3.7 files.

maestrodamuz 05-25-2008 10:14 PM

that didnt solve it, the error still persists.
at opserty, I have overwritten them.

Lynne 05-25-2008 10:23 PM

Take another look at the adminfunctions.php file, around line 3180 (where the error says the first declaration is), cuz my adminfuctions.php file has this on line 3180:
$vbulletin->forumcache["$forumid"]['lastprefixid'],

It has nothing to do with the function delete_product.

maestrodamuz 05-25-2008 11:16 PM

there has to be some kind of explainantion to this...

Dismounted 05-26-2008 06:05 AM

Open a support ticket @ vBulletin.com.

maestrodamuz 05-28-2008 05:30 PM

even support has not been able to help me....I have globally disabled hooks, uploaded version 3.7.1....still I cry...someone help..

Lynne 05-28-2008 07:34 PM

Why won't support help you? That seems a bit odd.

If it were me, I'd check for Suspect Files and remove all unnecessary files. I'd copy all the files from my server to my computer (I've already done that, but if you haven't..) and search for "delete_product" in all the files and make sure the functions isn't called twice. If I'm positive it is not, I'd made sure the file that "delete_product" is in is not somehow called twice in another file or in a plugin that is called multiple times on a page (like postbit ones). Not a fun thing to chase down (I hate these sort of problems!), but that's the way I'd go about it.

Opserty 05-28-2008 09:45 PM

Can you post the reason as to why vBulletin Support won't help you? Seems very odd...

The API suggests that the function should be declared in adminfunctions_plugin.php and not adminfunctions.php, can you post the Line 3180 of your adminfunctions.php file?


All times are GMT. The time now is 04: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.01951 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete