SMF Gallery

Started by SMFHacks.com Team, September 16, 2006, 07:13:02 PM

Previous topic - Next topic

gbsothere

I did a search on this error:  "Undefined offset"  and I did find where someone asked about it here on page 96 of the thread, but I can't find where it was resolved.  (Of course, I actually don't see well, but I did try.)

:)


SMF 1.1.11, Default theme and the two errors are these:


8: Undefined offset: 532
File: /var/www/vhosts/mywebsite.com/httpdocs/smf/Themes/default/Gallery.template.php
Line: 1010


The action link is this:  http://mywebsite.com/smf/index.php?action=gallery;sa=comment;id=380

Line 1010 of the Gallery.template.php is

         'size' => array('code' => 'size', 'before' => '', 'after' => '', 'description' => $txt[532]),


and the second error is

8: Undefined offset: 533
File: /var/www/vhosts/mywebsite.com/httpdocs/smf/Themes/default/Gallery.template.php
Line: 1011


The action link is

http://mywebsite.com/smf/index.php?action=gallery;sa=comment;id=385



Line 1011 (for the second error) is

         'face' => array('code' => 'font', 'before' => '', 'after' => '', 'description' => $txt[533]),


I'd appreciate any help with this. 
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

vbgamer45

Sounds like you are missing some language strings which would be odd for
$txt[532] and  $txt[533] are you using jus plain english under admin -> Server settings for language.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gbsothere

#2562
Quote from: vbgamer45 on March 28, 2010, 09:51:51 AM
Sounds like you are missing some language strings which would be odd for
$txt[532] and  $txt[533] are you using jus plain english under admin -> Server settings for language.


Hi, vbgamer45 and thanks!

I'm using plain English, but I just pulled my Modifications.english.php file from my server and did a search for $txt[532] and  $txt[533] and neither one shows up. 

:-\

Are these strings native to SMF?  (I can't think why my entire forum isn't messed up, if that's the case.)



EDIT:  Apparently, this would be the Post.english.php file.... and it seems to be some sort of font thing.  *S* 

I'll try to find how the string should be written and add it and see if that fixes it.   :)


Edit:  that was it, the strings related to font face and font size and (I'm guessing) some other mod replaced them.  I've added them back and comments in the gallery no longer produce an error.

Thanks!
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


vbgamer45

Let me know if you have any other ideas or improvements style wise since that is not one of my strengths. I plan on rolling on these layout changes to my other mods as well.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bullbreedluverz

1) the titlebg on  the Gallery Admin Panel  would look better with the curve styling (rounded ends)

2) the search/my images buttons seem a bit out of place and dont blend well with the layout and might look better if they were moved to where ive placed the No.3 in my attatched image so they follow with the curve styling better as the buttons on curve are placed bettween the linktree and the titlebar rather than under the titlebar

(when ya pass changes on to your other mods dont forget store mod on smfhacks site as it looks sucky without curves styling - sucky (core like) titlebars lol)

ivo2296

Hello,

In SMF 2.0 RC3 with Theme Darky i had no errors during the installation. However, wherever i click i get and error: Undefined index: image




8: Undefined index: image
Apply Filter: Only show the errors from this file
File: /home2/xxxx/public_html/xxxx/Themes/default/Errors.template.php (body_above sub template - eval?)
Line: 184



8: Undefined index: image
Apply Filter: Only show the errors from this file
File: /home2/xxxx/public_html/xxxx/Themes/default/BoardIndex.template.php (body_above sub template - eval?)
Line: 184

and so on...

No other mods installed.


I hope with your help i can fix that problem.


Thank you!


vbgamer45

Use the disable template eval to find the true error line number
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

ivo2296

#2571
Quote from: vbgamer45 on May 01, 2010, 12:18:12 AM
Use the disable template eval to find the true error line number

I did it:

session 17b7049ecd86c896077e8a66161eb004
Type of error: Undefined

8: Undefined index: image
Apply Filter: Only show the errors from this file
File: /home2/xxxx/public_html/xxxx/Themes/Darky2/index.template.php

    // If the user is logged in, display stuff like their name, new messages, etc.
      if ($context['user']['is_logged'])
      {
         echo '
            <ul class="reset floatright" style="text-align: left">
Line 184---->>            <li class="avatar">', $context['user']['avatar']['image'], '</li>
               <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
               <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
               <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

vbgamer45

That would be a theme or smf problem not part of SMF Gallery
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

ivo2296

Quote from: vbgamer45 on May 01, 2010, 01:05:22 AM
That would be a theme or smf problem not part of SMF Gallery

Strange, there was no errors before. I gona switch to the Core theme of SMF and do some tests.

adbrad

i have a feature request
where you got the search and my images buttons would it be possible to add an add image button there as well.

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

adbrad

thanks is this likely to be in the next update

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


vbgamer45

Only currently built in the pro edition currently of the mod.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: