Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

file The module and component views are broken

More
5 years 9 months ago - 5 years 9 months ago #24320 by sydawn
Good day - So I am running Portfolio Pro on PHP 7.1 and now I get

Cannot use string offset as an array

When it is 7.0 it works but the related section is not ok. How can I fix this?

P,S - The module is also totally broken showing only 1 column etc.
Last edit: 5 years 9 months ago by sydawn.

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

More
5 years 9 months ago #24326 by HaiND
Hi
Thank you for feedback us
in file: .../components/com_jux_portfolio_pro/views/item/view.html.php
$item = $this->get('Item');$item->tags =array ();
edit:
$item = $this->get('Item');

Hope it will help you
Thanks

Best Regards
--HaiND--

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

More
5 years 9 months ago #24333 by sydawn
Hello there,

I did what you said and it STILL did not work - I had to do this:

foreach ($this->tags as $k => $v) {

if ($item->id == $v->id && $v->titletag) {

/*$item->tags[$k] = $v->titletag;

*/ }

}

And now it works but now the tags have a problem... Is there any way for me to avoid having to do that?

Regards

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

More
5 years 9 months ago #24334 by HaiND
Hi again
i'm sorry i gave the reverse tutorial, it should be this way
in file: .../components/com_jux_portfolio_pro/views/item/view.html.php at line 57
$item = $this->get('Item');
edit:
$item = $this->get('Item');$item->tags =array ();

if still have problem, please send information login back-end via email: This email address is being protected from spambots. You need JavaScript enabled to view it.
I will check it for you soon
Thanks

Best Regards
--HaiND--

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

More
5 years 9 months ago #24336 by sydawn
Hello there,

The component seems to be fine now thank you so much - however the module is still giving that error. Any suggestion

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

More
5 years 9 months ago #24337 by sydawn
I put this into the default.php of module

if ($item->id == $v->id && $v->titletag) {

/* $item->tags[$k] = $v->titletag;*/

}


And it worked but once again - any other way for it to work?

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

More
5 years 9 months ago #24350 by HaiND
Hi again
Sorry for late reply, we have 1 holiday weekend
in file:
..\ modules\mod_jux_portfolio_pro\tmpl\default.php at line 124 and add code:
$item->tags = array();

and file:
..\ modules\mod_jux_portfolio_pro\helper.php at line 195 and add code:
$item->tags = array();

Hope it will help you
Thanks

Best Regards
--HaiND--

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

Moderators: Jackie
Time to create page: 0.059 seconds
Powered by Kunena Forum