TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 447
  • Total: 447

[bugtracker] TPortal.template Errors

Started by flyer222, May 01, 2010, 04:08:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flyer222

board/Themes/default/TPortal.template.php (eval?)
Line: 1

This issue appears when several functions are initiated primarilly on frontpage redirect and siting, undefined index: (member ID and Member name)

I am running SMF 2.0rc3 with TP 1.0 5 beta just installed as of 3 days ago where I have noticed considerable error message logged refering to to the above issue. I have looked at this file and with my limited experiance with the new TP can't see where the issue is to resolve. Any suggestions?

Just as a note I was running SMF 1.0 with TP until SMF 2.0 came out a couple years ago then switched and  uninstalled TP. However the original TP data base files still reside within the updated data base. Point! should these be dumped then reinstall TP fresh?

BTW good work Bloc and friends I have been waiting forever to use TP once again.

IchBin

There are many things that can cause this. Assuming you upgraded from an old verison, your block codes will need to be updated if you are using any custom ones. Other than that, I need to see the full errors.

flyer222

I must appologize for taking so long to get back with you, however I wanted to give you enough time to solve the member e mail change delema first then I was out of town for 10 days. I icolated the issue to a block that I put php code in to show random gallery pictures on the front page. The member ID and Names are not being picked up on each picture being dislplayed which is the error. This code is calling SM Media gallery for SMF 1.0 and 2.0 series but I see that scripted has been abandoned in favor of Aeva gallery.  There still my be something you want to look at so that this type of block will function properly, its getting tiring deleting 100's or error each day!.

Here is the PHO code I am using.


global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;   require_once($sourcedir . '/Subs-MGallery.php');   loadMGal_Settings();   if(loadlanguage('MGallery') == false)      loadLanguage('MGallery', 'english');   $items = getMediaItems(0, 5, 'RAND()');echo '<center><table>
';   foreach($items as $item)      echo '   <td>   <div class="smalltext" style=" line-height: 1.4em; border: 1px #000000 solid; padding: 5px;">      <a href="',$galurl,'sa=item;id=',$item['id'],'">',$item['title'],'</a>
      <a href="',$galurl,'sa=item;id=',$item['id'],'"><img alt="" src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="" /></a>
      ',$txt['mgallery_views'],' : ',$item['views'],'
      ',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$item['member_id'],'">',$item['member_name'],'</a>
      ',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$item['id_album'],'">',$item['album_name'],'</a>      ',$item['is_new'] ? '
<img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','   </div>   </td>';echo '   </tr></table></center>';

Thanks

ZarPrime

flyer222,

As Ichbin correctly surmised, and you have confirmed, the problem is not a bug in TinyPortal but is, instead, a problem with the block code itself.   In addition, as you mention, SMF Media Gallery is no longer in use and has been combined with Aeva by it's authors.  This note on the Mod page on SMF mentions that ...
QuoteSMF Media Gallery is now deprecated.
It has been replaced with a new version, Aeva Media, which as its name indicates, merges the two popular mods for SMF, Aeva 7.0 and SMG 2.0.

In reality, you should have probably posted this issue on our Support Board rather in the bugtracker and someone would have figured out the problem fairly quickly.  Even though you didn't use bbc code tags to surround your code in your post above, I can already see one thing that's wrong.  The $ID_MEMBER variable in the top line is no longer in use in SMF 2.0.

Anyway, the obvious choice would be to uninstall SMF Media Gallery (if it even works on your site) and replace it with Aeva, and then you could use BlueSteel's Aeva Media block that was written by him specifically for this version of TinyPortal and the newest SMF.

In the future, it would be better to post things like this that you believe to be a bug in the Support Board first and, after one of us has verified that it is a bug, we will ask you to report it in the bugtracker.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.