Keyword

**Solved** SIG Inserts Superfluous Code Into Custom Content Modules in Sidebar

  • gbruner
  • gbruner's Avatar Topic Author
  • Offline
  • New Member
More
16 years 2 months ago - 16 years 2 months ago #20557 by gbruner
I just installed SIG to provide a gallery display in Joomla 1.5.9.  After installation, although the gallery worked, I found that SIG has inserted the following in all my sidebar Custom Content modules: Warning: Missing argument 3 for plgContentJwsig::onPrepareContent() in /home/fortvir2/public_html/ashford/plugins/content/jwsig.php on line 44

This only appears to occur in modules where I have taken article content and put it into a custom content module in the sidebar.  It is only showing up in the right sidebar because I have not put custom content modules into the left sidebar.  Other modules published into the sidebars do not appear to be affected.

The following is a link to an example page
www.ashfordal.com/government/city/police/85-police-department-january-2009-report.html

If someone has a resolution to this problem, I would appreciate a fix or I'll have to switch to another gallery component/plugin.

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

  • gbruner
  • gbruner's Avatar Topic Author
  • Offline
  • New Member
More
16 years 2 months ago - 16 years 2 months ago #20558 by gbruner
Well, I realized that all the modules that were getting superfluous code had content with a picture, either JPG or PNG. I am using JCE Utilities and I thought that might have something to do with it, but it occurs on all modules with images whether I had set popups with JCE or not. So, I foolishly purchased SIG Pro thinking I could change the javascript lightbox popup and work around the conflict.  No joy. I still get the superfluous code in my sidebar modules.  It just has a different line number in jwsigpro.php where the argument is breaking down.  Here's the error:

Warning: Missing argument 3 for plgContentJwsigpro::onPrepareContent() in /home/fortvir2/public_html/ashford/plugins/content/jwsigpro.php on line 58

.  The argument missing is for $limitstart.  I can find nothing searching on $limitstart that relates to this problem.

Also, although the free SIG handled the picture filenames without problems, I had to change all the extensions to lower case for SIG Pro or my page crashed with the following error:

Warning: getimagesize(/home/fortvir2/public_html/ashford/images/stories/pictures/recdept/20090131_basketball/0901310012.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/fortvir2/public_html/ashford/plugins/content/jwsigpro/sigpro_engine.php on line 86
Image type not supported

.

On the plus side, at least the lightbox works now in IE7.  However, in single thumbnail mode, there is no exit (close) function for the slideshow so you have to navigate to another menu page to get out of the slideshow.  I may have wasted 12 euros ($15+) on this plugin if I can't clean up the sidebar modules.

I hope this helps someone else who is undecided about using this plugin.

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

  • gbruner
  • gbruner's Avatar Topic Author
  • Offline
  • New Member
More
16 years 2 months ago #20559 by gbruner
Well, it looks like I'm talking to myself here, so I'll quit after this post.  :(

I was able to get the superfluous code out of my custom content modules.  However, since I'm not proficient with php and with the use of $limitstart which is a pagination parameter, I'm not sure I haven't created another problem down the road.  I just removed the argument from the expression and my page cleaned up.  I have no clue what $limitstart is doing in jwsigpro.php, but I suspect it has to do with the number of thumbnails on a page before a new page is created.  As I don't intend to have more than a few thumbs per article, I believe it is safe to remove it.  I guess I'll find out at the most inopportune time.

ciao,
Guy

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

  • gbruner
  • gbruner's Avatar Topic Author
  • Offline
  • New Member
More
16 years 2 months ago #20560 by gbruner
If you look in the SIG PRO forum, you will find that you have to change the code in jwsig.php. :o

To fix the argument 3 warning, change the code on line 46 from ...$limitstart) to ...$limitstart=0).

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

More
15 years 7 months ago #20561 by FidelGonzales
I too am having several issues, which led me to turn on error reporting on in Joomla and find this problem. I don't know if you have any other suggestions or whether anyone else does, but here's the specific issue I am having on my item page, which contains lead photo, photo gallery and YouTube video.
Notice: Undefined property: stdClass::$profile in /home/udirt/public_html/offroad/components/com_k2/models/item.php on line 275

Notice: Undefined variable: gd_support in /home/udirt/public_html/offroad/plugins/content/jwsig.php on line 85

I tried the fix you suggested but the error remains.

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


Powered by Kunena Forum