undefined variable: imageSRC

  • stavast
  • Topic Author
  • New Member
  • New Member
More
15 years 6 months ago #101 by stavast
undefined variable: imageSRC was created by stavast
the slider doesn't work at all in my site, it just stays black. when i take a look at the source code i find the following line:

<script type="text/javascript">
  if(!window.slider) var slider={};slider.data=[


<b>Notice</b>: Â Undefined variable: imageSRC in <b>C:\wamp\www\dccms\modules\mod_hot_image_slider\tmpl\default.php</b> on line <b>123</b>

{"id":"slide-img-1","client":"Articles","desc":"Lorem ipsum dolor sit amet"},{"id":"slide-img-2","client":"Clock","desc":"Lorem ipsum dolor sit amet"},{"id":"slide-img-3","client":"Past Archives","desc":"Lorem ipsum dolor sit amet"} ];
 </script>



at line 123 of that file is the following:

<?php $imageSRC .= '{"id":"slide-img-'.$titleCounter.'","client":"'.$imageTitleArray[$titleCounter].'","desc":"'.$imageDescArray[$titleCounter].'"},'; ?>

does someone know how this can be solved? same problem with or without load jQuery

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
15 years 6 months ago #102 by milos
Are you sure that your path to the images folder and images names are correct? Please double check this.

Please Log in to join the conversation.

  • stavast
  • Topic Author
  • New Member
  • New Member
More
15 years 6 months ago #104 by stavast
Replied by stavast on topic Re: undefined variable: imageSRC
yes it's correct, when i look in the source code, the source of the image is http://localhost/dccms/images/stories/pastarchives.jpg en when i type this in my browser i see an image. i work from a wamp server, could this be the problem?

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
15 years 6 months ago #106 by milos
In module parameters, path should be "images/stories" and image should be "pastarchives.jpg". Is that so?

Please Log in to join the conversation.

  • stavast
  • Topic Author
  • New Member
  • New Member
More
15 years 6 months ago #109 by stavast
Replied by stavast on topic Re: undefined variable: imageSRC
yes that is all correct. the link of the image that is created is a correct link to the image. so when i copy the link from the source code and paste it in my explorer it shows an image.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
15 years 5 months ago #110 by milos
I have local apache server on Windows as well and it works fine. It's probably something about your template. Do you use mooFx anywhere on the page? Did you try to use default Joomla template to check if it works then?

Please Log in to join the conversation.

Time to create page: 0.167 seconds
Powered by Kunena Forum