News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

spate of errors now coming up

Started by zurgenaboy, September 25, 2015, 02:30:15 PM

Previous topic - Next topic

zurgenaboy

Last couple of days I have noticed hundreds of the following errors in the log,
can anyone please enlighten me.

smf 2.0.11

index.php
2: implode(): Invalid arguments passed
File: /var/www/smf/Themes/default/BoardIndex.template.php
Line: 330

8: Undefined variable: user_info
File: /var/www/smf/Themes/default/BoardIndex.template.php
Line: 330

thanks for any help

Kindred

well, what is line 330 of your BoardIndex.template.php file?
actually, please paste from around lines 320-335


what mods do you have installed?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

zurgenaboy

Havnt looked as its been years since I touched anything in code.
The last mod I installed was sc light
and not sure if that was before or after the upgrade to 2.0.11

Thanks for your quick reply

zurgenaboy

I have just viewed that file in the cp, but there are no line numbers to equate too.

Kindred

you would need to view it in a text editor that shows line numbers... or attach the whole file
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

zurgenaboy


zurgenaboy

dont have a text editor, but will find one after this....lol

a10

2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

zurgenaboy

Thanks A10
I believe kindred is working on the attached file.

zurgenaboy

lines 320 to 340:

      <div class="title_barIC">
         <h4 class="titlebg">
            <span class="ie6_header floatleft">
               <a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
               ', $txt['most_popular_topic_today'], '
            </span>
         </h4>
      </div>
      <p>';
   if ($context['topic_mod'] == '0')
330      echo $txt['cant_read_mpt'] . ' ' . implode(',', $user_info['groups']);
   elseif (!isset($context['most_popular_topic_today']['coll']) || ($context['topic_mod']) == '2')
        echo $txt['most_pop_top_abs'];
    else
         echo '
          <strong><a href="', $scripturl, '?topic=', $context['most_popular_topic_today']['id_topic'], '">', $context['most_popular_topic_today']['subject'], '</a></strong>
          <div class="smalltext">
             ', $txt['most_pop_top'], ' &quot;', $context['most_popular_topic_today']['coll'], '&quot;
          </div>';
   echo '
      </p>';

(I think I installed popular topic of the day as well)

Shambles

Well, for some reason your $user_info isn't globalised.

Try this copy:

zurgenaboy

OK, I have downloaded and replaced that file.
Have cleared the log of all 989 errors and will now keep an eye on the log.

Many, many, thanks for all the help

will come back and either ask for more help, or as I anticipate, close this thread. 8)

Steve

Just for future knowledge, when posting code, use the code tags. :)
DO NOT pm me for support!

zurgenaboy

what are the code tags ?

I am 76 and havnt done anything like this for 20 years....lol

Shambles

Quote from: zurgenaboy
... (I think I installed popular topic of the day as well)

That's the cause of the problem - it was reported to Runic (the mod taker-overer) but remains as an outstanding bug in the package.

http://www.simplemachines.org/community/index.php?topic=194987.msg2909852#msg2909852

Steve

Quote from: zurgenaboy on September 25, 2015, 04:20:19 PM
what are the code tags ?

Above this text reply box where all the smileys and buttons are, select this one:

It will give you this: [code][/code] ... paste the code in thar ... :)
DO NOT pm me for support!

zurgenaboy

Well, you relearn something every day....

Thanks a bunch to everyone who replied, what an excellent service.

Steve

Relearn something new every day ... love that! ;D

Don't forget to mark this topic solved once you've decided your problem's been fixed, if it has.
DO NOT pm me for support!

zurgenaboy

Quote from: zurgenaboy on September 25, 2015, 04:14:04 PM
OK, I have downloaded and replaced that file.
Have cleared the log of all 989 errors and will now keep an eye on the log.

Many, many, thanks for all the help

will come back and either ask for more help, or as I anticipate, close this thread. 8)

Keeping an eye on the log, and will be back as requested.

Plantje

Sorry to bump this old topic. Have you got this sorted out?

We have this issue as well and to me it seems te be caused by the fact that the most popular topic of the day is currently a topic that is in a board only visible for moderators.

Advertisement: