anihil2
10-29-2016, 06:13 PM
Hello all, I'm working on vB 4.2.3. I installed some Dbtech addons but after some time I realize that hooks are not working. So I created simple hook:
https://vborg.vbsupport.ru/external/2016/10/2.jpg
It should throw error message when forum start because in forum.php it's including global.php file. But after refreshing forum it's still working without throwing any error. I don't get it why.
vB was updated from v3 to v4.2.3 some time ago. I was now adding new addons and found out that it's not working how it supposed to.
In AdminCP Option 'Enable Plugin/Hook System' is set to Yes.
In config.php there is no DISABLE_HOOKS option set to true.
I try several different hooks and none is working.
Anyone have some idea what might be wrong?
Thank you in advance.
Seven Skins
10-29-2016, 08:39 PM
Try this..
https://vborg.vbsupport.ru/attachment.php?attachmentid=155434&stc=1&d=1477780692
You should see an echo on top of forum home page etc...
.
anihil2
10-29-2016, 09:38 PM
Try this..
https://vborg.vbsupport.ru/attachment.php?attachmentid=155434&stc=1&d=1477780692
You should see an echo on top of forum home page etc...
.
I did try it and it didn't work:
https://vborg.vbsupport.ru/external/2016/10/1.jpg
Any thoughts what else might be wrong? Maybe some server permissions?
MarkFL
10-29-2016, 09:42 PM
Try adding this line to the top of the file "includes/config.php"
$config['Misc']['debug'] = true;
You might get a useful error message then if a PHP error is causing your plugins not to work.
anihil2
10-29-2016, 10:09 PM
For plugin DbTech vBmail I'm getting information:
VBULLETIN 4.2.3 DEBUG INFORMATION
Page Generation 0.11610 seconds Memory Usage 9,306KB Queries Executed 7 (?)
More Information
Template Usage (27):
(1)STANDARD_ERROR
(1)ad_footer_end
(1)ad_footer_start
(1)ad_global_above_footer
(1)ad_global_below_navbar
(1)ad_global_header1
(1)ad_global_header2
(1)ad_navbar_below
(1)facebook_footer
(1)facebook_header
(1)facebook_opengraph
(1)footer
(1)footer_column_1
(1)footer_column_2
(1)footer_column_3
(1)footer_column_4
(1)forumjump
(1)gobutton
(1)header
(1)headinclude
(1)headinclude_bottom
(1)navbar
(1)navbar_link
(1)navbar_tabs
(5)option
(1)spacer_close
(1)spacer_open
Phrase Groups Available (5):
album
dbtech_vbmail
global
posting
user
Included Files (34):
./vbmail.php
./dbtech/vbmail/includes/specialtemplates.php
./global.php
./includes/class_bootstrap.php
./includes/init.php
./includes/class_core.php
./includes/config.php
./includes/functions.php
./includes/functions_navigation.php
./includes/class_datastore.php
./includes/datastore/datastore_cache.php
./includes/class_friendly_url.php
./includes/class_hook.php
./dbtech/usertag/hooks/init_startup.php
./dbtech/usertag/includes/specialtemplates.php
./dbtech/usertag/hooks/fetch_userinfo_query.php
./includes/class_bootstrap_framework.php
./vb/vb.php
./vb/phrase.php
./dbtech/usertag/hooks/global_start.php
./dbtech/usertag/includes/class_core.php
./dbtech/usertag/includes/class_cache.php
./includes/class_facebook.php
./includes/facebook/facebook.php
./includes/facebook/base_facebook.php
./includes/functions_facebook.php
./dbtech/usertag/hooks/global_bootstrap_complete.php
./dbtech/usertag/hooks/cache_templates.php
./includes/functions_notice.php
./dbtech/usertag/hooks/notifications_list.php
./dbtech/usertag/hooks/process_templates_complete.php
./includes/functions_misc.php
./mobiquo/smartbanner.php
./mobiquo/smartbanner/head.inc.php
Hooks Called (46):
init_startup
database_pre_fetch_array
database_post_fetch_array
fetch_userinfo_query
fetch_musername
fetch_userinfo
global_bootstrap_init_start
global_bootstrap_init_complete
cache_permissions
load_show_variables
load_forum_show_variables
global_state_check
global_bootstrap_complete
global_start
style_fetch
global_setup_complete
forumjump
cache_templates
cache_templates_process
template_register_var
template_render_output
fetch_template_start
fetch_template_complete
fb_opengraph_array
parse_templates
notices_check_start
notifications_list
friendlyurl_resolve_class
friendlyurl_geturl
process_templates_complete
navbits
navbits_complete
error_generic
build_navigation_data
build_navigation_array
check_navigation_permission
process_navigation_links_start
process_navigation_links_complete
set_navigation_menu_element
build_navigation_menudata
build_navigation_listdata
build_navigation_list
set_navigation_tab_main
set_navigation_tab_fallback
navigation_tab_complete
page_templates
Messages:
php_sapi_name(): apache2handler
VBULLETIN MESSAGE
The vBMail product has been deactivated by an administrator.
For main page I'm getting:
VBULLETIN 4.2.3 DEBUG INFORMATION
Page Generation 0.32850 seconds Memory Usage 13,293KB Queries Executed 15 (?)
More Information
Template Usage (37):
(1)FORUMHOME
(1)ad_board_after_forums
(1)ad_board_below_whats_going_on
(1)ad_footer_end
(1)ad_footer_start
(1)ad_global_above_footer
(1)ad_global_below_navbar
(1)ad_global_header1
(1)ad_global_header2
(1)ad_navbar_below
(2)block_html
(1)block_newposts
(1)block_threads
(1)blog_forumhome_stats
(1)facebook_footer
(1)facebook_header
(1)facebook_opengraph
(1)footer
(1)footer_column_1
(1)footer_column_2
(1)footer_column_3
(1)footer_column_4
(6)forumhome_forumbit_level1_nopost
(37)forumhome_forumbit_level2_post
(43)forumhome_lastpostby
(10)forumhome_subforums
(1)gobutton
(1)header
(1)headinclude
(1)headinclude_bottom
(43)memberaction_dropdown
(1)navbar
(1)navbar_link
(1)navbar_tabs
(5)option
(1)spacer_close
(1)spacer_open
Phrase Groups Available (3):
activitystream
global
holiday
Included Files (48):
./forum.php
./global.php
./includes/class_bootstrap.php
./includes/init.php
./includes/class_core.php
./includes/config.php
./includes/functions.php
./includes/functions_navigation.php
./includes/class_datastore.php
./includes/datastore/datastore_cache.php
./includes/class_hook.php
./dbtech/usertag/hooks/init_startup.php
./dbtech/usertag/includes/specialtemplates.php
./dbtech/usertag/hooks/fetch_userinfo_query.php
./includes/class_bootstrap_framework.php
./vb/vb.php
./vb/phrase.php
./includes/class_friendly_url.php
./dbtech/usertag/hooks/global_start.php
./dbtech/usertag/includes/class_core.php
./dbtech/usertag/includes/class_cache.php
./includes/class_facebook.php
./includes/facebook/facebook.php
./includes/facebook/base_facebook.php
./includes/functions_facebook.php
./dbtech/usertag/hooks/global_bootstrap_complete.php
./includes/functions_bigthree.php
./includes/functions_forumlist.php
./includes/functions_calendar.php
./packages/vbcms/route/list.php
./vb/route.php
./vb/router.php
./dbtech/usertag/hooks/cache_templates.php
./includes/functions_notice.php
./dbtech/usertag/hooks/notifications_list.php
./dbtech/usertag/hooks/process_templates_complete.php
./includes/class_block.php
./includes/block/html.php
./vb/context.php
./vb/cache.php
./vb/cache/db.php
./vb/cache/observer/db.php
./vb/cache/observer.php
./includes/block/threads.php
./includes/block/newposts.php
./includes/blog_functions_shared.php
./mobiquo/smartbanner.php
./mobiquo/smartbanner/head.inc.php
Hooks Called (54):
init_startup
database_pre_fetch_array
database_post_fetch_array
fetch_userinfo_query
fetch_musername
fetch_userinfo
global_bootstrap_init_start
global_bootstrap_init_complete
cache_permissions
load_show_variables
load_forum_show_variables
global_state_check
global_bootstrap_complete
global_start
style_fetch
global_setup_complete
forumhome_start
forumhome_loggedinuser_query
forumhome_loggedinuser
cache_ordered_forums
friendlyurl_clean_fragment
memberaction_dropdown
cache_templates
cache_templates_process
template_register_var
template_render_output
fetch_template_start
fetch_template_complete
fb_opengraph_array
parse_templates
notices_check_start
notifications_list
friendlyurl_resolve_class
friendlyurl_geturl
process_templates_complete
forumbit_display
forumbit_subforumbit
forumbit_subforumbit2
forumhome_complete
navbits
navbits_complete
build_navigation_data
build_navigation_array
check_navigation_permission
process_navigation_links_start
process_navigation_links_complete
set_navigation_menu_element
build_navigation_menudata
build_navigation_listdata
build_navigation_list
set_navigation_tab_main
set_navigation_tab_fallback
navigation_tab_complete
page_templates
Messages:
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(88, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(13, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning iconid:9 from the template cache</option>
<option>(unspecified) fetch_permissions(67, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(68, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(196, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(204, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(42, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(14, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(12, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(69, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(70, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(71, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(98, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning iconid:9 from the template cache</option>
<option>(unspecified) fetch_permissions(169, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(46, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(7, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(3, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(91, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(16, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(20, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(128, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(60, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(227, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(43, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(17, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(100, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(6, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning iconid:4 from the template cache</option>
<option>(unspecified) fetch_permissions(114, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(15, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(29, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(97, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning iconid:4 from the template cache</option>
<option>(unspecified) fetch_permissions(8, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(22, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(53, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(219, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(62, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(9, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(19, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(212, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(10, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(66, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(186, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>returning default icon</option>
<option>(unspecified) fetch_permissions(11, 0, ); -> trying to get forumpermissions for non $bbuserinfo</option>
<option>php_sapi_name(): apache2handler</option>
--------------- Added 1477787401 at 1477787401 ---------------
I have two addons installed dbtech usertag and vbmail. On different forum where everything is working for me when I go to vbmail.php page I get in debug info lines in order:
./includes/class_hook.php
./dbtech/vbmail/hooks/init_startup.php
On forum where I have issue vbmail.php in debug is showing me lines:
./includes/class_hook.php
./dbtech/usertag/hooks/init_startup.php
And for the whole page I have only dbtech/usertag don't know why.
I checked $GLOBALS and it's filled with dbtech/usertag only.
I install usertag some time ago without any issues. Today I try to install vbmail and it's not working.
Any idea why vB messed up with reading proper addon?
--------------- Added 1477811070 at 1477811070 ---------------
I found solution. Issue was with wrong permissions for datastore_cache.php file, must be 777.
Mod, please close this thread.
Paul M
10-30-2016, 10:40 PM
I see no reason to close it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.