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

  • Cristian Iconomu
  • Cristian Iconomu's Avatar Topic Author
  • Offline
  • New Member
More
17 years 7 months ago #7352 by Cristian Iconomu
Undefined offset was created by Cristian Iconomu
Hi,

I just installed SIGPRO on Joomla and everything is okay until a I login as user...
I get the undefined offset error on lines 81, 82 and 83:
It is probably worth mentioning that I also had a flash movie (in the template) that wasn't loading due to the use of <?php echo $mosconfig_live_site;?> in the path, giving me a "undefined variable error" but maybe it's irrelevant.

The gallery works fine even with the error.
I can give you the url and username/password on email if necessary.

Thanks, and keep up the great work, the plugin is really great.

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

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

It will be helpfully if you can send also a link to see the problem!

Well, i see that in those 3 lines, we define some variables respect an array.
Some servers return warning if an array or variable is not pre-defined

Try to do that ( EDIT: correction of the code )
if(@$_params[1]) $_width_final_ = $_params[1]; else $_width_final_ = $_width_;
if(@$_params[2]) $_height_final_ = $_params[2]; else $_height_final_ = $_height_;
if(@$_params[3]) $_howmanythumbs_ = $_params[3]; else $_howmanythumbs_ = $singlethumb;
at those 3 lines and check it out!

Also you can PM me a link and a s.administrator account to check it out my self if you can!

Thank you my friend!

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

More
17 years 6 months ago #7354 by nish
Replied by nish on topic Re: Undefined offset
having the same issue, please help me.
I tried above the lines edited as explained and didn't work.

Please anyone solved this issue at all?

Thank You
Nish

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 6 months ago #7355 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset

having the same issue, please help me.
I tried above the lines edited as explained and didn't work.

Please anyone solved this issue at all?

Thank You
Nish


Hi there!

I correct the code above, check it out again!

But if still doesn't work send me a link to see the issue!
Also you can PM me an super administrator account to see what happen in your case!

Thank you!

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

More
17 years 6 months ago #7356 by nish
Replied by nish on topic Re: Undefined offset
OK, Line 81,82,83 ERROR is gone after putting the new code. but I am still getting the following ERROR;

Notice: Undefined index: af834e61b367f64b12ba98997bf800b4 in /home/xxxxxx/public_html/mambots/content/plugin_jw_sigpro.php on line 281


I get the above error once for each image I have in the Gallery

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 6 months ago #7357 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset
ok! lets see what happens!

please, send me a direct link to see the issue in real time
and also a super administrator account to check the files!

Thank you!
No worries, the problem will be solved!

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

More
17 years 6 months ago #7358 by nish
Replied by nish on topic Re: Undefined Index
Hi I have PM you with s.admin username/password
Please login from the FRONTEND and go to any Gallery page you will see the error message

Also noticed you get the error message once for every image you have on the Gallery

Once you solved this issue, I will get back to you for a custom modification quote for adding a PRINT button to larger image.

Many Thanks
Nish

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 6 months ago - 17 years 6 months ago #7359 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset
Hi there!

I just checked the page
www.YOURSITE.co.uk/conference-tables/
where i can see the sig pro in action

i checked it out with FF and IE7
and as you can see in my screenshots i can't see the warnings

can you send me a direct link to the page you can see those warnings?

thank you!
Attachments:

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 6 months ago - 17 years 6 months ago #7360 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset
with ie 7
Attachments:

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

More
17 years 6 months ago #7361 by nish
Replied by nish on topic Re: Undefined offset
Hi,

it is only visible when you login to website from FRONTEND, there is a Login link on FOOTER MENU, please use the username/password I sent you via PM message

Again, please login to frontend joomla to see the ERROR

Thank You
Nish

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 6 months ago #7362 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset
OK!

Take a look now my friend!  :)
Seems to work just fine now!

The problem was ( well, not exactly problem )
that from the moment you don't use the labels function
your server return as "Undefined offset" notice, the empty array in php code.

Its a good to have running the errors report of the server
but usually the "errors" and "warnings" reports are those most important!
The "notice" reports its ok, but not necessary!

If you need more help, i'm here!

Thank you!

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

More
17 years 6 months ago #7363 by nish
Replied by nish on topic Re: Undefined offset
kool,

weldone, Thank You for solving that issue.

Nish

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

More
17 years 6 months ago #7364 by markus wirkner
Replied by markus wirkner on topic Re: Undefined offset
the code in my plugin_jw_sigpro.php is already like described above.

but getting still the same error more than once:

[Thu Oct 18 17:45:06 2007] [error] [client 192.168.30.32] PHP Notice:  Undefined offset:  1 in /opt/share/www/test/mambots/content/plugin_jw_sigpro.php on line 113


only sig pro ist installed.
free version isnt installed anymore. the free version worked fine.

help please
not a public server (yet)

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 6 months ago #7365 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Undefined offset
Hi there!

I know that you said that the server is not yet public
but really need to see this issue in action to understand what happens!

The servers message is an error, warning or a notice?
The plugin works fine, but you have also those messages displayed?

well, at the line 113 we have this code line
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".$temp[0])] = $temp[1];

try to "mute" it like this
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".@$temp[0])] = @$temp[1];

you can send me via PM your direct to gallery link
and a s.administrator account to check ( and modify if necessary ) the files of the SIG Pro mambot.

Thank you!

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

More
17 years 6 months ago #7366 by markus wirkner
Replied by markus wirkner on topic Re: Undefined offset
-it is an error.
-the plugin doesn't work at all. the website cant be displayed with the plugin since i changed from free to pro version.
-if i delete the labels.txt it show up an other error like:
  "Undefined index: "..........
-the labels.txt is created by using vi, and contains exactly the right name of the files following by | and text as shown in the example.

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

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

As i saw from your first post, its an php notice!

Really need a direct link to see the issue in action!
I can't help you if i can't see the problem!
please, understand that!

PM me an direct link to the gallery and a super administrator account to see what happens!

Thank you!

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

More
17 years 6 months ago #7368 by markus wirkner
Replied by markus wirkner on topic Re: Undefined offset
hi,
i had a working free-sim in my homenet. but with sim-pro the "undefined-offset-error".
to give you the chance to login and solve the problem, i copied everything to a public space on my server (with dyndns) from then on the gallery worked without changing anything else...hm.

i'll leave it there, it works thanks.

p.s. the only problem thereover i had to solve was kind of strange:
the site told me some like "image type not supported" - i forgot to change the user and rights. now the message doesnt appears anymore and the gallery works.

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


Powered by Kunena Forum