vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [APM] Advanced Product Management 2.0.4 (https://vborg.vbsupport.ru/showthread.php?t=95741)

TTG 02-23-2006 03:29 PM

Quote:

Originally Posted by pauloo
I have a problem after install vb 3.5.4.
When i want to run Advanced Product Management in admincp, i have this error:


Fatal error: Cannot redeclare delete_product() (previously declared in /home/***/admincp/apm_product.php:49) in
/home/***/forum/includes/adminfunctions.php on line 3195

Have you a solution please?

Thank you

Same problem here :ermm:

Paul M 02-23-2006 04:50 PM

Jelsoft have added a function called delete_product() to the software which clashes with the function of the same name in the hack. Oddly enough, both are absolutely identical, so one of them needs commenting out or removing - the apm one being the most obvious. Try just editing apm_product.php and alter function delete_product($productid) to function delete_product_apm($productid) (line 49).

pauloo 02-23-2006 05:20 PM

Yes it's good now !

Thank you Paul ;)

Andreas 02-23-2006 06:54 PM

delete_product() existed since product management first appeared, but it was moved to adminfunctions.php in vBulletin 3.5.4

Cross-Version Solution:
Wrap the function in APM in
PHP Code:

if (!function_exists('delete_product'))
{




MThornback 02-23-2006 09:23 PM

Thanks Andreas your my hero :cool:

lolo? 02-28-2006 06:58 AM

dosent work for me in 3.5.4
where your modification must do it
sorry for my english

pauloo 02-28-2006 12:32 PM

Quote:

Originally Posted by Paul M
Try just editing apm_product.php and alter function delete_product($productid) to function delete_product_apm($productid) (line 49).

it's ok for me

lolo? 03-01-2006 05:13 AM

thnaks work great for me next time i read better the thread :p

EasyTarget 03-08-2006 07:10 PM

thanks guys... updated and working good so far.

gothicuser 03-17-2006 04:01 AM

Thanks everybody. Really great, installed and working perfectly
.. .. :D :D


All times are GMT. The time now is 01:44 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.02849 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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