Missing argument 8 for NSP_GK4_Layout_Parts::image()

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Jan 23, 2012 3:05 pm
Hello,

I'm trying out J2.5 RC1. I've installed NSP GK4 v.3.0 and now it gives me this error:
Code: Select all
Warning: Missing argument 8 for NSP_GK4_Layout_Parts::image(), called in /modules/mod_news_pro_gk4/gk_classes/portal_modes/gk.portal_mode_3.php on line 84 and defined in /modules/mod_news_pro_gk4/tmpl/layout.parts.php on line 49


It was fine with NSP GK4 v2.9.
User avatar
Senior Boarder

teitbite
Mon Jan 23, 2012 9:45 pm
Hi

Sorry, but NSP GK4 is designed for J1.7 so there is no guarantee that it will work under 2.5. When 2.5 will be official we adjust NSP to work with.
User avatar
Moderator

GK User
Tue Jan 24, 2012 8:39 am
teitbite wrote:Hi

Sorry, but NSP GK4 is designed for J1.7 so there is no guarantee that it will work under 2.5. When 2.5 will be official we adjust NSP to work with.


Joomla 2.5 should be released today :)
It seems that this error is shown when on the THUMBNAILS tab Thumbnail image is set to "Use Joomla! images". It was said in the v3.0 changelog that that support for Joomla! 2.5 article images was added and also compatibility with Joomla! 2.5 was fixed, so I thought that everything should work.
User avatar
Senior Boarder

teitbite
Tue Jan 24, 2012 2:30 pm
Hi

I still see RC version only :(. If NSP was updated already than I think 2.5 has changed something till this release. The only thing we can do is wait.
User avatar
Moderator

GK User
Wed Jan 25, 2012 4:18 pm
teitbite wrote:Hi

I still see RC version only :(. If NSP was updated already than I think 2.5 has changed something till this release. The only thing we can do is wait.


Any news? :)
User avatar
Senior Boarder

GK User
Wed Jan 25, 2012 6:22 pm
Hello,

i've got the same Warnings ... is it possible to delete the update and work with the older Version?
User avatar
Fresh Boarder

GK User
Thu Jan 26, 2012 10:33 am
smartBrands wrote:Hello,

i've got the same Warnings ... is it possible to delete the update and work with the older Version?


There are changes in Joomla 2.5, so it's better to wait for an update, which will fix all these issues :)
User avatar
Senior Boarder

GK User
Thu Jan 26, 2012 10:46 am
smartBrands wrote:Hello,

i've got the same Warnings ... is it possible to delete the update and work with the older Version?

i upload version 2.8 and work good
User avatar
Junior Boarder

teitbite
Thu Jan 26, 2012 11:27 am
Hi

Like I said :) Patience is the key.
User avatar
Moderator

GK User
Mon Jan 30, 2012 3:03 pm
I've installed NSP GK4 v.3.0.1, but the problems are the same. Any news on when this should be fixed? :)
User avatar
Senior Boarder

GK User
Mon Jan 30, 2012 3:45 pm
Took a look at it myself and fixed my problem. In the file modules/mod_news_pro_gk4/gk_classes/portal_modes/gk.portal_mode_3.php (it's the one i use - Accordion news) I've modified line 84:
Before:
Code: Select all
$news_image = $renderer->image($this->parent->config, $uri, $this->parent->content['ID'][$i], $this->parent->content['IID'][$i], $this->parent->content['CID'][$i], $this->parent->content['text'][$i], $this->parent->content['title'][$i]);

After:
Code: Select all
$news_image = $renderer->image($this->parent->config, $uri, $this->parent->content['ID'][$i], $this->parent->content['IID'][$i], $this->parent->content['CID'][$i], $this->parent->content['text'][$i], $this->parent->content['title'][$i], $this->parent->content['images'][$i]);

It was missing
Code: Select all
$this->parent->content['images'][$i]
at the end.

Hope we get an official fix soon :)
User avatar
Senior Boarder

GK User
Mon Jan 30, 2012 5:13 pm
Hello,

I add the same problem, applied you fix and now i don´t have any warnings but the thumbs images of joomla news don´t show!

I´ll wait for an official fix as soon as possible.

Thanks,

Semedo


Girdvainis wrote:Took a look at it myself and fixed my problem. In the file modules/mod_news_pro_gk4/gk_classes/portal_modes/gk.portal_mode_3.php (it's the one i use - Accordion news) I've modified line 84:
Before:
Code: Select all
$news_image = $renderer->image($this->parent->config, $uri, $this->parent->content['ID'][$i], $this->parent->content['IID'][$i], $this->parent->content['CID'][$i], $this->parent->content['text'][$i], $this->parent->content['title'][$i]);

After:
Code: Select all
$news_image = $renderer->image($this->parent->config, $uri, $this->parent->content['ID'][$i], $this->parent->content['IID'][$i], $this->parent->content['CID'][$i], $this->parent->content['text'][$i], $this->parent->content['title'][$i], $this->parent->content['images'][$i]);

It was missing
Code: Select all
$this->parent->content['images'][$i]
at the end.

Hope we get an official fix soon :)
User avatar
Junior Boarder

teitbite
Tue Jan 31, 2012 2:44 am
Hi

Please just tell me if You have installed the latest version of the module for Joomla 2.5 available here https://www.gavick.com/download/extensi ... o-gk4.html . If yes please send me FTP access to Your site.
User avatar
Moderator

GK User
Tue Jan 31, 2012 10:26 am
teitbite wrote:Hi

Please just tell me if You have installed the latest version of the module for Joomla 2.5 available here https://www.gavick.com/download/extensi ... o-gk4.html . If yes please send me FTP access to Your site.

I too have the same problem. News Pro GK 3.0.1 and Joomla 2.5
Normal mode works fine, but all 4 portal modes give errors
www.ports4web2.com
User avatar
Fresh Boarder

GK User
Tue Jan 31, 2012 12:33 pm
Yes i have intalleed News Pro GK 3.0.1, Joomla 2.5 and the lateste version of Financial Business Template for J! 2.5.

http://www.consulfogo.pt/web/

I´ll send you FTP access to my site right now.

Thanks in advance.

Semedo



teitbite wrote:Hi

Please just tell me if You have installed the latest version of the module for Joomla 2.5 available here https://www.gavick.com/download/extensi ... o-gk4.html . If yes please send me FTP access to Your site.
User avatar
Junior Boarder

GK User
Tue Jan 31, 2012 6:54 pm
We prepare a fix for this notice messages in next module version.
User avatar
Platinum Boarder

teitbite
Wed Feb 01, 2012 2:12 am
bkrztuk wrote:We prepare a fix for this notice messages in next module version.


Hi

Great news :) So looks like I'm not needed here after all. Thank You Bartek.
User avatar
Moderator

GK User
Thu Feb 02, 2012 4:38 pm
Ok! Any idea about the release date?

bkrztuk wrote:We prepare a fix for this notice messages in next module version.
User avatar
Junior Boarder

GK User
Thu Feb 02, 2012 8:31 pm
Hi,

In my site, for test, happens the same.I have the latest version.

See the image:

erro_mod_news.gif


Someone can help me?

Thanks
User avatar
Junior Boarder

GK User
Fri Feb 03, 2012 12:12 am
perpetuo wrote:Hi,

In my site, for test, happens the same.I have the latest version.

See the image:

erro_mod_news.gif


Someone can help me?

Thanks


The site is: http://www.craff.org/dev/

Help
User avatar
Junior Boarder

GK User
Fri Feb 03, 2012 2:33 am
Please disable displaying errors in PHP configuration (it is recommended for Joomla and mentioned at forum many many times ...)
User avatar
Platinum Boarder

GK User
Fri Feb 03, 2012 9:55 am
bkrztuk wrote:Please disable displaying errors in PHP configuration (it is recommended for Joomla and mentioned at forum many many times ...)


Thanks,

But I don't have access to php.ini to disable displaying errors in PHP.

How can I disable the errors?
User avatar
Junior Boarder

GK User
Fri Feb 03, 2012 12:53 pm
bkrztuk wrote:Please disable displaying errors in PHP configuration (it is recommended for Joomla and mentioned at forum many many times ...)



Hi,

How is in the image the PHP errors have been disabled.
php_ini.gif


But the error did not disappear. You can see in http://www.craff.org/dev/index.php

Thanks
User avatar
Junior Boarder

GK User
Fri Feb 03, 2012 11:06 pm
Please try to add this code to file default.php in template/layouts directory in <php ?> part at the same top :
Code: Select all
error_reporting(E_ALL & ~(E_STRICT|E_NOTICE));
User avatar
Platinum Boarder

GK User
Sat Feb 04, 2012 12:19 am
bkrztuk wrote:Please try to add this code to file default.php in template/layouts directory in <php ?> part at the same top :
Code: Select all
error_reporting(E_ALL & ~(E_STRICT|E_NOTICE));


Hi,

I make the change, but the problem is the same.

You want access to the site?
User avatar
Junior Boarder

GK User
Sun Feb 05, 2012 12:25 am
Have the same Problem. Only in Portal Mode. In Normal Mode it works.
User avatar
Junior Boarder

GK User
Sun Feb 05, 2012 1:44 pm
Have the same Problem.

Joomla 1.7.4
User avatar
Fresh Boarder

GK User
Sun Feb 05, 2012 1:51 pm
Please disable display_errors option in PHP configuration. Issue will be resolved in following update.
User avatar
Platinum Boarder

GK User
Sun Feb 05, 2012 3:37 pm
It is disabled. And the PHP Code error_reporting(E_ALL & ~(E_STRICT|E_NOTICE)); doesn´t work too.
User avatar
Junior Boarder

teitbite
Mon Feb 06, 2012 8:11 pm
Hi

I was PM to get back to this thread again.

You can edit file /modules/mod_news_pro_gk4/gk_classes/portal_modes/gk.portal_mode_1.php and replace lines 81&82:

Code: Select all
            // GENERATING IMAGE
            $news_image = $renderer->image($this->parent->config, $uri, $this->parent->content['ID'][$i], $this->parent->content['IID'][$i], $this->parent->content['CID'][$i], $this->parent->content['text'][$i], $this->parent->content['title'][$i]);



to

Code: Select all
            // GENERATING IMAGE
            $news_image = $renderer->image($this->parent->config, $uri, $this->parent->content['ID'][$i], $this->parent->content['IID'][$i], $this->parent->content['CID'][$i], $this->parent->content['text'][$i], $this->parent->content['title'][$i], '');


Anyway I think this was the kind of error which a good old fashioned PHP update would solve :) Kidding, but I think that in 5.3.X such warnings got less restricted.
User avatar
Moderator


cron