Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Undefined offset Errors

More
16 years 7 months ago - 16 years 7 months ago #14297 by tnt3
Undefined offset Errors was created by tnt3
Getting this error message only when logged in from the front end of the website no error if not logged in:

Notice: Undefined offset: 1 in /mnt/w0603/d38/s20/b0218f2e/www/content/mambots/content/plugin_jw_sigpro.php on line 113

I was getting the same error on lines 81 and 82 but found the fix however, I can not find this lines fix,from plugin_jw_sigpro.pho line 113:

$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".$temp[0])] = $temp[1];

Any help is greatly appreciated.

Thanks

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 7 months ago #14298 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset Errors
Hi my friend!

Are you using the "labels.txt" option of the mambot?
If not let's try to mute the "Notice message"!
Change the line to
@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".@$temp[0])] = @$temp[1];

Come back to tell me if this works for you!  ;)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
16 years 7 months ago - 16 years 6 months ago #14299 by tnt3
Replied by tnt3 on topic Re: Undefined offset Errors
Hello,

I am using the labels.txt for this application.  Like I explained it only happens when I log in from the front end.  If you are a guest and not logged in you wont see this error.  So knowing this if I can the code will I still be able to have captions on the thumbnails and the images?  Here is a direct link to one of the pages in question, please note you will have to make an account to see the error.

[url=http://content/index.php?option=com_content&task=view&id=262&Itemid=637]http://content/index.php?option=com_content&task=view&id=262&Itemid=637[/url]

Thanks

Please Log in or Create an account to join the conversation.

More
16 years 7 months ago #14300 by tnt3
Replied by tnt3 on topic Re: Undefined offset Errors
Actually, I checked out the site again today and now am getting error codes for the following two lines:
Notice: Undefined index: 2a306e1a0f470b2b3ff72120d1c0b3dd in /mnt/w0603/d38/s20/b0218f2e/www/content/mambots/content/plugin_jw_sigpro.php on line 278

Notice: Undefined index: 2a306e1a0f470b2b3ff72120d1c0b3dd in /mnt/w0603/d38/s20/b0218f2e/www/content/mambots/content/plugin_jw_sigpro.php on line 298


This was as well as the previous line 113 but now I fixed that with the code you provided and now the 113 error is gone and everything else seems fine but the two previous errors I now am getting when logged in.  Please note I am using SIGpro with the Tabs and Slides App.

Thanks again

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 6 months ago #14301 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset Errors
Hi my friend!

This problem has to do with the offset index of the array where are stored the labels.
Let's mute those arrays, too
278
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.@$images[$a])]!="") {

298
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.@$images[$a])]!="") {

Let's try this and tell me the results!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
16 years 6 months ago #14302 by tnt3
Replied by tnt3 on topic Re: Undefined offset Errors
Thank you very much for your help and coding expertise.  It appeared to work now also another fix is just have labels for all your photos and you wont get the errors on the 278 and 298 lines but now it is fixed even if no labels exist.

Thanks again!!!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum