vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Automatic Tagger From Message Content and Title (https://vborg.vbsupport.ru/showthread.php?t=234026)

Terrablade 09-30-2014 03:00 AM

Warning: str_split() expects parameter 2 to be long, string given in ..../includes/functions_autotaggerfromcontentandtitle.php on line 13

Warning: str_split() expects parameter 2 to be long, string given in ..../includes/functions_autotaggerfromcontentandtitle.php on line 85

Warning: array_diff() [function.array-diff]: Argument #1 is not an array in ..../includes/functions_autotaggerfromcontentandtitle.php on line 130

Warning: Invalid argument supplied for foreach() in ..../includes/functions_autotaggerfromcontentandtitle.php on line 134

I added the fix Ozzy talked about in line 13 and 85 but these warnings now pop up

Hex_legend 10-28-2014 09:04 AM

It's not working properly here as well :(

When i have the default files installed, users get many lines of the following error (the page is finally loading after a user submits a new thread though and all those lines with the error are disappearing):
Deprecated: Function split() is deprecated in /home/my_user/public_html/includes/functions_autotaggerfromcontentandtitle.php on line 85

When i try ozzy47's fix the page stuck and displays forever many lines with the following error:
Warning: str_split() expects parameter 2 to be long, string given in /home/my_user/public_html/includes/functions_autotaggerfromcontentandtitle.php on line 85

I have noticed a pattern though. Users get all those errors, only when they try to create a new thread on a section that new threads require validation before they are displayed. On the rest sections the plugin is working without any problems/errors!

Hex_legend 10-28-2014 04:39 PM

I suppose excluding some forums from the Automatic Tagger would help me until a permanent solution is found. Is there a way to exclude certain forums?

rrhill 11-22-2014 04:40 AM

Sadly enough I have to disable this brilliant plugin. After the upgrade to 4.2 it reports errors, that lead to double posts.

https://vborg.vbsupport.ru/external/2014/11/9.jpg

MoveOver.cc 12-09-2014 01:06 PM

Hi,

I am getting this error after I "Add Tags to All Threads"

Warning: Declaration of vBForum_Item_SocialGroupMessage::getLoadQuery() should be compatible with vB_Model::getLoadQuery($required_query = '', $force_rebuild = false) in ..../packages/vbforum/item/socialgroupmessage.php on line 261

Warning: Declaration of vBForum_Item_SocialGroupDiscussion::getLoadQuery() should be compatible with vB_Model::getLoadQuery($required_query = '', $force_rebuild = false) in ..../packages/vbforum/item/socialgroupdiscussion.php on line 337

Any ideas.

Thanks

alexkohler 12-14-2014 02:34 PM

Quote:

Originally Posted by Terrablade (Post 2516999)
Warning: str_split() expects parameter 2 to be long, string given in ..../includes/functions_autotaggerfromcontentandtitle.php on line 13

Warning: str_split() expects parameter 2 to be long, string given in ..../includes/functions_autotaggerfromcontentandtitle.php on line 85

Warning: array_diff() [function.array-diff]: Argument #1 is not an array in ..../includes/functions_autotaggerfromcontentandtitle.php on line 130

Warning: Invalid argument supplied for foreach() in ..../includes/functions_autotaggerfromcontentandtitle.php on line 134

I added the fix Ozzy talked about in line 13 and 85 but these warnings now pop up

This fix can?t work.

Try to replace

line 13 with

PHP Code:

return explode(' '$text); 

line 85 with

PHP Code:

return explode(','$csv); 

.

Line 130 and 134 should be o.k. then.

(Not tested).

Dennis Kaczor 01-13-2015 12:30 PM

Quote:

Originally Posted by alexkohler (Post 2527166)
This fix can?t work.

Try to replace

line 13 with

PHP Code:

return explode(' '$text); 

line 85 with

PHP Code:

return explode(','$csv); 

.

Line 130 and 134 should be o.k. then.

(Not tested).

Thanks for this information, this fixed the error message and I thank you for that.

Dennis

Hex_legend 01-16-2015 04:47 PM

I have some good news. I hope it will work for some other users as well.

I just set PHP Compatability to yes and i don't get any errors.

admincp/options/plugin hook system/set PHP Compatability to yes and save!

MistViper 01-17-2015 10:30 PM

I just installed it and I got this error when trying to test it, please let me know as to how I can fix this.

Warning: require_once(..../includes/functions_autotaggerfromcontentandtitle.php) [function.require-once]: failed to open stream: No such file or directory in ..../includes/functions_newpost.php(814) : eval()'d code on line 2

Fatal error: require_once() [function.require]: Failed opening required '/home/mistvipe/public_html/forum/includes/functions_autotaggerfromcontentandtitle.php' (include_path='.:/usr/local/php53/pear') in /home/mistvipe/public_html/forum/includes/functions_newpost.php(814) : eval()'d code on line 2

ozzy47 01-17-2015 10:35 PM

It appears as if you have uploaded the files incorrectly.
Please drag and drop the contents of the upload folder (use Ctrl+A to select all files) to your public_html folder. http://ozzmodz.com/images/smilies/smile.png

MistViper 01-18-2015 12:01 AM

Oh... I've been dragging them into the forum folder under public_html... If this is the mistake I'm so stupid haha Thanks Ozzy. <3

ozzy47 01-18-2015 12:04 AM

Well if your vB files are in a forum folder, then that is where you need to load the files to, the same place all your vBulletin files are.

mdawg 04-03-2015 04:28 AM

How about making this for vb 5 - vb5 is the wave of the future!

I was stuck in vb3 for years but now that I've upgraded to vb5 over all I am glad I made the move.

ramesh_umk3 05-01-2015 10:25 AM

below is the stop list format

Quote:

a,about,above,across,after,again,against,all,almos t,alone,along,already,also,although,always,among,a n,and,another,any,anybody,anyone,anything,anywhere ,are,area,areas,around,as,ask,asked,asking,asks,at ,away,b,back,backed,backing,backs,be,became,becaus e,become,becomes,been,before,began,behind,being,be ings,best,better,between,big,both,but,by,c,came,ca n,cannot,case,cases,certain,certainly,clear,clearl y,come,could,d,did,differ,different,differently,do ,does,done,down,down,downed,downing,downs,during,e ,each,early,either,end,ended,ending,ends,enough,ev en,evenly,ever,every,everybody,everyone,everything ,everywhere,f,face,faces,fact,facts,far,felt,few,f ind,finds,first,for,four,from,full,fully,further,f urthered,furthering,furthers,g,gave,general,genera lly,get,gets,give,given,gives,go,going,good,goods, got,great,greater,greatest,group,grouped,grouping, groups,h,had,has,have,having,he,her,here,herself,h igh,high,high,higher,highest,him,himself,his,how,h owever,i,if,important,in,interest,interested,inter esting,interests,into,is,it,its,itself,j,just,k,ke ep,keeps,kind,knew,know,known,knows,l,large,largel y,last,later,latest,least,less,let,lets,like,likel y,long,longer,longest,m,made,make,making,man,many, may,me,member,members,men,might,more,most,mostly,m r,mrs,much,must,my,myself,n,necessary,need,needed, needing,needs,never,new,new,newer,newest,next,no,n obody,non,noone,not,nothing,now,nowhere,number,num bers,o,of,off,often,old,older,oldest,on,once,one,o nly,open,opened,opening,opens,or,order,ordered,ord ering,orders,other,others,our,out,over,p,part,part ed,parting,parts,per,perhaps,place,places,point,po inted,pointing,points,possible,present,presented,p resenting,presents,problem,problems,put,puts,q,qui te,r,rather,really,right,right,room,rooms,s,said,s ame,saw,say,says,second,seconds,see,seem,seemed,se eming,seems,sees,several,shall,she,should,show,sho wed,showing,shows,side,sides,since,small,smaller,s mallest,so,some,somebody,someone,something,somewhe re,state,states,still,still,such,sure,t,take,taken ,than,that,the,their,them,then,there,therefore,the se,they,thing,things,think,thinks,this,those,thoug h,thought,thoughts,three,through,thus,to,today,tog ether,too,took,toward,turn,turned,turning,turns,tw o,u,under,until,up,upon,us,use,used,uses,v,very,w, want,wanted,wanting,wants,was,way,ways,we,well,wel ls,went,were,what,when,where,whether,which,while,w ho,whole,whose,why,will,with,within,without,work,w orked,working,works,would,x,y,year,years,yet,you,y oung,younger,youngest,your,yours,z

friendlymela 10-08-2015 08:26 AM

I am facing db error after enable it

ozzy47 10-08-2015 09:15 AM

You need to post the full error, no one can guess the error you got.

friendlymela 10-15-2015 08:09 AM

Quote:

Originally Posted by ozzy47 (Post 2556574)
You need to post the full error, no one can guess the error you got.

Ok Ozzy i'll post the error soon

Talk Hard 08-07-2016 01:41 AM

My forum has 600,000 posts and I keep getting this.

504 Gateway Time-out

nginx/1.4.1

Want all the old stuff tagged. Is is running still in the background? Or does it start where it left off from the timeout.?

Unreal on new threads. you are a mad scientist

mdawg 05-12-2017 02:30 AM

This mod will not work with vb 4.2.5 IF running php 7. It will work under PhP 5.6

If you try to make an advanced reply while running this mod, or post a brand new thread, while running PhP 7, you will get an error such as this:

Call to undefined function split() on line 85 in /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php
#0 /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php(113): csvToArray('forum, made, po...')
#1 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809) : eval()'d code(3): addTags(Array, Array)
#2 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809): eval()
#3 /home/*****/public_html/*****.com/forums/newreply.php(451): build_new_post('reply', Array, Array, Array, Array, Array)
#4 {main}

NOW - the strange thing is, after you get the above errors, which appear on a new browser window, the advanced reply or new thread IS posted, just the process is interrupted by this error message.

BUT: running in PhP 5.6, the autotagger does add the "Tags for this Thread."
Running in PhP 7, NO tags are added.

Rhodium 05-15-2017 08:39 PM

1 Attachment(s)
Quote:

Originally Posted by mdawg (Post 2586407)
This mod will not work with vb 4.2.5 IF running php 7. It will work under PhP 5.6


If you try to make an advanced reply while running this mod, or post a brand new thread, while running PhP 7, you will get an error such as this:

Call to undefined function split() on line 85 in /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php
#0 /home/*****/public_html/*****.com/forums/includes/functions_autotaggerfromcontentandtitle.php(113): csvToArray('forum, made, po...')
#1 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809) : eval()'d code(3): addTags(Array, Array)
#2 /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(809): eval()
#3 /home/*****/public_html/*****.com/forums/newreply.php(451): build_new_post('reply', Array, Array, Array, Array, Array)
#4 {main}

NOW - the strange thing is, after you get the above errors, which appear on a new browser window, the advanced reply or new thread IS posted, just the process is interrupted by this error message.

BUT: running in PhP 5.6, the autotagger does add the "Tags for this Thread."
Running in PhP 7, NO tags are added.

Try changing in functions_autotaggerfromcontentandtitle.php

(line 85)
Code:

      return implode(',', $csv);
to

Code:

      return explode(',', $csv);
and

(line 13)
Code:

  return implode(' ', $text);
to

Code:

  return explode(' ', $text);

mdawg 05-16-2017 12:10 AM

In my file functions_autotaggerfromcontentandtitle.php the lines were:

line 85
return split(',', $csv);

line 13
return split(' ', $text);

but I changed the world split to explode in both lines:

line 85
return explode(',', $csv);

line 13
return explode(' ', $text);

and seems to work now! without error in PhP 7 and the tags are being added.

Thanks!

bmwfans 11-18-2018 12:09 PM

Installed on 4.2.3 and it seems to work.
However, after a testing, the plugin added automatically only tags from post body.
The opposite of what happened here:
Quote:

Originally Posted by NLP-er (Post 2045910)
Next version will support this.

Nothing added from the title, despite the fact that used many different words.

Is there any customization that should be also done?

-update- this issue only appears when on title are used words other than in English language

final kaoss 11-18-2018 09:04 PM

Quote:

Originally Posted by bmwfans (Post 2597451)
Installed on 4.2.3 and it seems to work.
However, after a testing, the plugin added automatically only tags from post body.
The opposite of what happened here:


Nothing added from the title, despite the fact that used many different words.

Is there any customization that should be also done?

-update- this issue only appears when on title are used words other than in English language

Interesting, mind giving us a url?

mdawg 07-19-2020 01:45 PM

I am not sure if this has to do with it, but ever since we
installed the most recent Node.js version of 14.5.0 on the server and confirmed it's accessible for both the root user as well as the other users.

[root@host ~]# node -v
v14.5.0

[______@host ~]$ node -v
v14.5.0

now all attempts to post a URL in a forum post result in a 504 bad gateway error. This bad gateway error is happening only at my vbulletin 4 site (that is running this mod), it is not happening when URLs are posted in posts at my vbulletin 5 forums.


All times are GMT. The time now is 03:05 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.01535 seconds
  • Memory Usage 1,816KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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