vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Deleting widget (https://vborg.vbsupport.ru/showthread.php?t=252110)

Juggernaut 10-15-2010 02:29 AM

Deleting widget
 
I have a widget installed that is giving me fatal errors with the widget manager in my admincp, I tried unistalling the product that installed the widget type, but even after unistalling and deleting the files through php, I still get the fatal error. I wanted to know if it's safe to drop the database table for this widget or will this just give me database errors instead and could posibly hurt my forum? Here is the error I'm getting.


PHP Code:

Trying to get widgettype class from invalid widgettype '24' on line 270 in /home/xxxxx/public_html/packages/vbcms/types.php
#0 /home/xxxxx/public_html/packages/vbcms/collection/widget.php(230): vBCms_Types->getWidgetTypeClass('24')
#1 /home/xxxxx/public_html/vb/collection.php(448): vBCms_Collection_Widget->createItem(Array, 1)
#2 /home/xxxxx/public_html/packages/vbcms/collection/widget.php(162): vB_Collection->applyLoad(Resource id #40, 1)
#3 /home/xxxxx/public_html/vb/model.php(348): vBCms_Collection_Widget->applyLoad(Resource id #40, 1)
#4 /home/xxxxxx/public_html/vb/model.php(302): vB_Model->loadInfo()
#5 /home/xxxxxx/public_html/vb/collection.php(408): vB_Model->Load(false)
#6 /home/xxxxx/public_html/vb/collection.php(843): vB_Collection->Load()
#7 /home/xxxxx/public_html/administrantes/cms_admin.php(1820): vB_Collection->valid()
#8 {main}

Fatal errorTrying to get widgettype class from invalid widgettype '24' on line 270 in [path]/packages/vbcms/types.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, Trying to get widgettype class from invalid widgettype '24' on line 270 in /home/xxxxx/public_html/packages/vbcms/types.php , /home/cuscatl2/public_html/vb/vb.php, 287, Array ([exception] => vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Trying to get widgettype class from invalid widgettype '24',[] => ,[] => 0,[] => /home/xxxxx/public_html/packages/vbcms/types.php,[] => 270,[] => Array ([0] => Array ([file] => /home/xxxxx/public_html/packages/vbcms/collection/widget.php,[line] => 230,[function] => getWidgetTypeClass,[class] => vBCms_Types,[type] => ->,[args] => Array ([0] => 24)),[1] => Array ([file] => /home/xxxxx/public_html/vb/collection.php,[line] => 448,[function] => createItem,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Array ([itemid] => 43,[title] => Top 5 Semanal,[description] => ,[widgettypeid] => 24),[1] => 1)),[2] => Array ([file] => /home/xxxxx/public_html/packages/vbcms/collection/widget.php,[line] => 162,[function] => applyLoad,[class] => vB_Collection,[type] => ->,[args] => Array ([0] => Resource id #40,[1] => 1)),[3] => Array ([file] => /home/xxxxx/public_html/vb/model.php,[line] => 348,[function] => applyLoad,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Resource id #40,[1] => 1)),[4] => Array ([file] => /home/xxxxx/public_html/vb/model.php,[line] => 302,[function] => loadInfo,[class] => vB_Model,[type] => ->,[args] => Array ()),[5] => Array ([file] => /home/xxxxx/public_html/vb/collection.php,[line] => 408,[function] => Load,[class] => vB_Model,[type] => ->,[args] => Array ([0] => )),[6] => Array ([file] => /home/xxxxx/public_html/vb/collection.php,[line] => 843,[function] => Load,[class] => vB_Collection,[type] => ->,[args] => Array ()),[7] => Array ([file] => /home/xxxxx/public_html/administrantes/cms_admin.php,[line] => 1820,[function] => valid,[class] => vB_Collection,[type] => ->,[args] => Array ()))),[code] => 256)) called at [(null):0] #1 trigger_error(Trying to get widgettype class from invalid widgettype '24' on line 270 in /home/xxxxx/public_html/packages/vbcms/types.php , 256) called at [/home/xxxxxx/public_html/vb/vb.php:287] #2 vB::handleException(vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Trying to get widgettype class from invalid widgettype '24',[] => ,[] => 0,[] => /home/cuscatl2/public_html/packages/vbcms/types.php,[] => 270,[] => Array ([0] => Array ([file] => /home/xxxxx/public_html/packages/vbcms/collection/widget.php,[line] => 230,[function] => getWidgetTypeClass,[class] => vBCms_Types,[type] => ->,[args] => Array ([0] => 24)),[1] => Array ([file] => /home/xxxxx/public_html/vb/collection.php,[line] => 448,[function] => createItem,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Array ([itemid] => 43,[title] => Top 5 Semanal,[description] => ,[widgettypeid] => 24),[1] => 1)),[2] => Array ([file] => /home/xxxx/public_html/packages/vbcms/collection/widget.php,[line] => 162,[function] => applyLoad,[class] => vB_Collection,[type] => ->,[args] => Array ([0] => Resource id #40,[1] => 1)),[3] => Array ([file] => /home/xxxxx/public_html/vb/model.php,[line] => 348,[function] => applyLoad,[class] => vBCms_Collection_Widget,[type] => ->,[args] => Array ([0] => Resource id #40,[1] => 1)),[4] => Array ([file] => /home/xxxx/public_html/vb/model.php,[line] => 302,[function] => loadInfo,[class] => vB_Model,[type] => ->,[args] => Array ()),[5] => Array ([file] => /home/xxxxx/public_html/vb/collection.php,[line] => 408,[function] => Load,[class] => vB_Model,[type] => ->,[args] => Array ([0] => )),[6] => Array ([file] => /home/xxxxx/public_html/vb/collection.php,[line] => 843,[function] => Load,[class] => vB_Collection,[type] => ->,[args] => Array ()),[7] => Array ([file] => /home/xxxxx/public_html/administrantes/cms_admin.php,[line] => 1820,[function] => valid,[class] => vB_Collection,[type] => ->,[args] => Array ())))) called at [(null):0] 


Lynne 10-15-2010 03:20 AM

Do not drop the whole table, but I would guess it would be fine to drop the row that was added in the install code.

You really need to ask this question in the modification thread since the developer is the best person to answer this question.

Juggernaut 10-15-2010 12:33 PM

Thank you Lynne, will be waiting for an answer from the developer then. :)

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

I dropped the troublesome rows, and this seems to have fixed my issue. Thank you for helping Lynne :D


All times are GMT. The time now is 02:55 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.01597 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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