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)
-   -   New Posting Features - Automatic Thread Tagger for vB4.x (https://vborg.vbsupport.ru/showthread.php?t=255251)

ozzy47 10-10-2013 09:52 AM

Warning: Assigning the return value of new by reference is deprecated in ....Bla Bla Bla

How to fix.

Open the file, includes/functions_autotagger.php on line 191, in that file find the following:

Code:

$excludedForums = split('\|', $vbulletin->options['autotag_exclude_forums']);
Replace with:
Code:

$excludedForums = explode('\|', $vbulletin->options['autotag_exclude_forums']);
Find:
Code:

$excludedUsers = split('\|', $vbulletin->options['autotag_exclude_users']);
Replace it with this:

Code:

$excludedUsers = explode('\|', $vbulletin->options['autotag_exclude_users']);

sadiq6210 10-28-2013 09:00 PM

I got this errors in 4.2.2 / php5.4

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 15

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 23

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 32

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 33

mooncreek 11-29-2013 11:35 PM

Getting same errors. Would appreciate update for 4.2.2

Noticed that when editing posts, errors do not allow post to load with edits.

tbworld 11-30-2013 05:09 AM

@Sadig6210, @Mooncreek:

Please read the modification's thread before posting. @Ozzy47 graciously posted several fixes in post #91, https://vborg.vbsupport.ru/showpost.php?p=2451721&postcount=91.

The author has not been online since 2011.

MrD 01-14-2014 10:44 AM

Hi,
i got an Error that the split function is deprecated.
File is includes/functions_autotagger.php Line 394
PHP Code:

$parts split("'=>'"$filterReplaceItems[$x]); 

Can i replace all split to explode?

I ask Phalynx for Permission and Coroner for Coding in 2010 for that Addon.

rootsxrocks 02-03-2014 07:07 AM

Quote:

Originally Posted by ozzy47 (Post 2451721)
Warning: Assigning the return value of new by reference is deprecated in ....Bla Bla Bla

How to fix.

Open the file, includes/functions_autotagger.php on line 191, in that file find the following:

Code:

$excludedForums = split('\|', $vbulletin->options['autotag_exclude_forums']);
Replace with:
Code:

$excludedForums = explode('\|', $vbulletin->options['autotag_exclude_forums']);
Find:
Code:

$excludedUsers = split('\|', $vbulletin->options['autotag_exclude_users']);
Replace it with this:

Code:

$excludedUsers = explode('\|', $vbulletin->options['autotag_exclude_users']);

I just wanted to add I had done this edit without success and turned the mod off till I could get back to it , but just went back and changed several more instances of the split to explode and it appears to be working.
It was hard to catch the errors shown before the page changed. I ignored other lines that included this $subjectTopreg_split(kens = '/\s(?=([^"]*"[^"]*"[^"]*)*$|[^"]*$)/', $title, -1, PREG_SPLIT_NO_EMPTY);

Other lines changed include but are not limited to
line 338
line 421
line 389
line 375
line 394

MrD 02-06-2014 11:35 AM

Exclude from Forums are not Working.
I have a lot of ID´s in the Settings, but the Forums are all Tagged.
Maybe a User or Coder can Fix it?

ITDarasgah 02-13-2014 09:37 AM

I have done
https://vborg.vbsupport.ru/showpost....1&postcount=91
but still found
https://vborg.vbsupport.ru/showpost....3&postcount=92

any idea?

rootsxrocks 02-13-2014 05:06 PM

Quote:

Originally Posted by MrD (Post 2479352)
Exclude from Forums are not Working.
I have a lot of ID?s in the Settings, but the Forums are all Tagged.
Maybe a User or Coder can Fix it?

I was able to exclude 1 forum delete all tags and re run and it worked fine and did not retag all the weather threads

rootsxrocks 02-13-2014 05:15 PM

Quote:

Originally Posted by sadiq6210 (Post 2456893)
I got this errors in 4.2.2 / php5.4

this is the lines as they are in my file im running PHP Version 5.4.24 and it seems to be working without errors but i may have just missed them.



Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 15
PHP Code:

  if (intval($thread['threadid']) == 0

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 23
PHP Code:

    WHERE t.contentid=".$thread['threadid']." AND autotag=

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 32
PHP Code:

$vbulletin->db->query_write("DELETE FROM " TABLE_PREFIX "tagcontent WHERE autotag=1 AND contentid=" $thread['threadid']); 

Warning: Illegal string offset 'threadid' in ..../includes/functions_autotagger.php on line 33
PHP Code:

$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "thread SET autoskip=0 WHERE threadid=" $thread['threadid']); 



All times are GMT. The time now is 06:11 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.01513 seconds
  • Memory Usage 1,754KB
  • 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
  • (8)bbcode_code_printable
  • (5)bbcode_php_printable
  • (3)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