[2.0 RC3] log error - Undefined variable: parse_tags (Subs.php)

Started by Raffoz, May 08, 2010, 05:01:09 AM

Previous topic - Next topic

Raffoz

my log error is full of this error:

Undefined variable: parse_tags
in the file Subs.php
line: 1641

code of that line is
if ($parse_tags !== array() && is_array($parse_tags))

anyone can help me? maybe the two && ???
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Arantor


Raffoz

MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Arantor


Raffoz

these attached...

but making a agoogle search seems that it depends by a shoutbox problem of simpleportal... but i don't have any shoutbox active and created...

thanks
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Arantor


Raffoz

MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Afro


Raffoz

MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Afro

Well it could have been caused by the tapatalk mod. Its the only mod i know that modifies that part of the code in subs.php.
So my guess is , if you installed and uninstalled it, its likely to cause those errors.

Am i near the truth ?

Raffoz

i had that errore before tapatalk...

and now, even uninstalling tapatalk, i still have that error...

i don't know why... :(
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

orange.toaster

In the line
if ($parse_tags !== array() && is_array($parse_tags))
php goes to get the variable of $parse_tags to see if it is equivalent to array(), however, when it tries to it can't find the variable and generates an error.

It will stop generating errors if you do this instead:
if(isset($parse_tags) && is_array($parse_tags))

You also appear to be checking to see if the array is empty, the method for that is empty(). Try
if(isset($parse_tags) && is_array($parse_tags) && !empty($parse_tags))

I know it has been a month since this question was posed, however, it shows up on google results and has not yet been answered.

tfs

I recently updated Tapatalk to 0.9.13 and now I'm getting thousands of this error.  Uninstalling Tapatalk doesn't make it go away.

8: Undefined variable: parse_tags
File: /x/Sources/Subs.php
Line: 1684

The URL line is all kinds of different things.  The only program I had changed was the Tapatalk upgrade.  Will post in the Tapatalk thread also.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Advertisement: