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.

[SOLVED]2.5.1 warning error

  • DanielJPhotography
  • DanielJPhotography's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago - 13 years 6 months ago #41203 by DanielJPhotography
[SOLVED]2.5.1 warning error was created by DanielJPhotography
I've fixed the fatal error problem, but now when I load my page I get multiple warnings. Also, some of the thumbnails don't display and some of the pictures when you click the thumbnail don't load (Although it's probably due to the warnings)

These warnings are

Warning: Call-time pass-by-reference has been deprecated in /misc/15/347/000/621/3/user/web/danieljphotography.co.uk/plugins/content/jw_sigpro/jw_sigpro.php on line 29

Warning: Call-time pass-by-reference has been deprecated in /misc/15/347/000/621/3/user/web/danieljphotography.co.uk/plugins/content/jw_sigpro/jw_sigpro.php on line 29

Warning: Call-time pass-by-reference has been deprecated in /misc/15/347/000/621/3/user/web/danieljphotography.co.uk/plugins/content/jw_sigpro/jw_sigpro.php on line 35

Warning: Call-time pass-by-reference has been deprecated in /misc/15/347/000/621/3/user/web/danieljphotography.co.uk/plugins/content/jw_sigpro/jw_sigpro.php on line 35

I haven't got a clue when it comes to PHP. The SIG free works fine with the same images, I've changed all then settings from the default values in the SIG Pro plugin manager. I would look at the code myself and try to figure it out, but sadly Notepad doesn't seem to put the right code on the right lines :(

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 6 months ago #41204 by Yiota
Replied by Yiota on topic Re: 2.5 warning error
Try to unistall and re-install the plugin. There is a newer version 2.5.1.

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

  • DanielJPhotography
  • DanielJPhotography's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago - 13 years 6 months ago #41205 by DanielJPhotography
Replied by DanielJPhotography on topic Re: 2.5 warning error
I managed to fix the error on line 29 simply by removing the Joomla 1.5 code. Now the line 35 error has moved to line 30. I have also fixed the problem with the full size images not displaying by turning debug mode off. I am still having the problem with the 2nd error and a lot of the thumbnails not displaying.

Edit: Forgot to mention, I am running 2.5.1 but the problems in this post are still on going

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

More
13 years 6 months ago #41206 by BBC
Replied by BBC on topic Re: 2.5.1 warning error
You probably have your settings in Joomla configuration Error Reporting = Maximum.
I just turned it to max and have same errors as you have.

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

  • DanielJPhotography
  • DanielJPhotography's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago #41207 by DanielJPhotography
Replied by DanielJPhotography on topic Re: 2.5.1 warning error
I have tried changing the error reporting to None and I still get the same message

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

  • DanielJPhotography
  • DanielJPhotography's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago #41208 by DanielJPhotography
Replied by DanielJPhotography on topic Re: 2.5.1 warning error
I believe I have managed to fix the warning. The problem was to do with PHP4 call method using the & symbol. I simply removed these from line 30 and left the $ in place and the warning has now gone. Upon further inspection, the images that don't load all have spaces in their names, I am now going to remove the spaces and see if they start working.

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

More
13 years 6 months ago #41209 by JoomlaWorks
Replied by JoomlaWorks on topic Re: [SOLVED]2.5.1 warning error
Solution:

Open up the file /plugins/content/jw_sigpro/jw_sigpro.php and locate around line 28 this block:
    // Joomla! 1.5
    function onPrepareContent(&$row, &$params, $page = 0){
        $this->renderSIGP(&$row, &$params, $page = 0);
    }

    // Joomla! 1.6
    function onContentPrepare($context, &$row, &$params, $page = 0){
        jimport('joomla.html.parameter');
        $this->renderSIGP(&$row, &$params, $page = 0);
    }

Change to:
    // Joomla! 1.5
    function onPrepareContent($row, $params, $page = 0){
        $this->renderSIGP(&$row, &$params, $page = 0);
    }

    // Joomla! 1.6
    function onContentPrepare($context, $row, $params, $page = 0){
        jimport('joomla.html.parameter');
        $this->renderSIGP(&$row, &$params, $page = 0);
    }

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

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

More
13 years 6 months ago #41210 by foof132
Replied by foof132 on topic Re: [SOLVED]2.5.1 warning error
Hi Fotis,

The updated code didn't work, so I removed the "&" in the renderSIGP lines (not sure if that's recommended, but everything worked for me as it should):
  // Joomla! 1.5
    function onPrepareContent($row, $params, $page = 0){
        $this->renderSIGP($row, $params, $page = 0);
    }

    // Joomla! 1.6
    function onContentPrepare($context, $row, $params, $page = 0){
        jimport('joomla.html.parameter');
        $this->renderSIGP($row, $params, $page = 0);
    }

Hope that helps!

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


Powered by Kunena Forum