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?

maestrodamuz 05-28-2008 09:54 PM

Quote:

Originally Posted by Opserty (Post 1534490)
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?

They say my FTP keep timing out, they asked me to load the vbulletin 3.7.1 files and try again, still same error.

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

Line 3180 of adminfunctions.php
Code:

function delete_product($productid)

Opserty 05-28-2008 09:59 PM

Are you experiencing FTP problems? Because it may be that your files are not being uploaded completely or some of them are being missed due to the time out, you may wish to speak to your host to see if they can figure out why the FTP is timing out.

maestrodamuz 05-28-2008 10:05 PM

I did it!!!!!!!!!!!!!

Turns out function delete_product was declared both on line 3180 on adminfunctions.php and line 21 on adminfunctions_plugin.php, but this line throws errors for vbulletin 3.5 upgrades.

So I just commented line 21 to 48 in that file.

Thanks Lynne and Opserty. And everyone.

Lynne 05-28-2008 11:10 PM

Just wanted to comment that line 3180 of the adminfuctions.php file in 3.7 is NOT the delete_product function. I think you are using an older version of your adminfunctions.php file. You need to make sure all your uploaded files are for version 3.7 (or 3.7.1) or you are going to have more problems along the way.

Opserty 05-28-2008 11:38 PM

You haven't solved your problem though maestrodamuz, you've merely averted some symptoms. Check the top of your adminfunctions.php file and it will tell your the vBulletin version number of the file, (most definately will not be 3.7.x). You need to figure out why you're files are not being overwritten correctly. It maybe that you aren't uploading the correct files or to the correct place or it may be that there is something wrong with the FTP transfer/FTP Client.

You need to look into this as it will only cause problems in the future if core files are updated and you are using older files.


All times are GMT. The time now is 02:06 PM.

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.01159 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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