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

file PHP 7.2 compatibility issue

More
6 years 11 months ago #18958 by UBIQ AG
Dear JoomlaUX-Team,

We're using JUX Portfolio Pro (version 1.0.2, Joomla 3.8.3, PHP 7.0.25).
Now, we want to upgrade PHP to 7.1.11 or even 7.2.0. Unfortunately, the vertical gallery (default_vertical_gallery.php) is not compatible with PHP 7.1 or 7.2.

Error message after clicking on an portfolio item: 0 - Cannot use string offset as an array

In another forum, we've found the following statement:
"As of PHP 7.1.0, applying the empty index operator on a string throws a fatal error. Formerly, the string was silently converted to an array."

Are you going to provide an update for PHP 7.2?

Thank you and best regards from Switzerland
Fabian

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

More
6 years 11 months ago #18965 by HaiND
Replied by HaiND on topic PHP 7.2 compatibility issue
Hi WHIZZZ GmbH
Thank you for feedback us
I would not clients were found as a problem
If you can give me back-end login information
I will check it for you soon
Thanks

Best Regards
--HaiND--

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

More
6 years 11 months ago #18976 by UBIQ AG
Replied by UBIQ AG on topic PHP 7.2 compatibility issue
Dear HaiND,

Thank you for your fast reply. The page is on a LIVE environment. So we've had to stick to PHP 7.0.
Therefore, you don't see any errors on that page at the moment.

But:
As you certainly know, security support will end in 10 months ( php.net/supported-versions.php ). So, by end of November 2018, we need to have a working solution for PHP 7.1 or even better 7.2. I'm sure that also other customers using JUX portfolio are facing the same issue.

Therefore again my question: Is JoomlaUX working on an update of that extension? You might also see the same issue on your own server if you'd change it to PHP 7.2, right?

Thank you again and best regards
Fabian

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

More
6 years 11 months ago #18980 by HaiND
Replied by HaiND on topic PHP 7.2 compatibility issue
Hi WHIZZZ GmbH
Thank you for feedback us
I really do not see the problem because I have run it try on php 7
can you send me a picture on the problem or error message line, i will check it for you soon
Thanks

Best Regards
--HaiND--

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

More
6 years 11 months ago - 6 years 11 months ago #18982 by UBIQ AG
Replied by UBIQ AG on topic PHP 7.2 compatibility issue
Dear HaiND,

Which sub-version of PHP 7 are you using? PHP 7.0 or 7.1 or 7.2?

As previously stated, we have the following situation:

PHP 7.0.25: OK
PHP 7.1.11: not OK => Error message after clicking on an portfolio item: 0 - Cannot use string offset as an array
PHP 7.2.0: not OK => Error message after clicking on an portfolio item: 0 - Cannot use string offset as an array

As of PHP 7.1 or higher, applying the empty index operator on a string throws a fatal error. And that's exactly the problem here: view.html.php on line 60.

I assume therefore, that you might have 7.0 installed, right? But we can only use 7.0 only until the end of November 2018.

Thanks for checking that again.
Last edit: 6 years 11 months ago by UBIQ AG.

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

More
6 years 11 months ago #18984 by HaiND
Replied by HaiND on topic PHP 7.2 compatibility issue
HI WHIZZZ GmbH
Thank you for feedback us
I have some difficulty in checking the problem for you because I can not access your site
Again I would like to ask is you can allow me to access your back-end website and I will install an extension check code for you
Please give me link your site and your account of administrator via private message or mail: This email address is being protected from spambots. You need JavaScript enabled to view it.
Hope you understand and look forward to receiving sympathy
Thanks

Best Regards
--HaiND--

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

More
6 years 10 months ago #19391 by UBIQ AG
Replied by UBIQ AG on topic PHP 7.2 compatibility issue
Dear HaiND,

Unfortunately, we're not able to provide you access to the site or server due to permission restrictions.
However, meanwhile, we've updated the server to PHP 7.2.2.

The problem remains the same. The detail portfolio item is showing the same error as previously stated.

We've found the code that causes that problem:

/components/com_jux_portfolio_pro/views/item/view.html.php
We've commented out lines 59 to 61:
/* if ($item->id == $v->id && $v->titletag) {
$item->tags[$k] = $v->titletag;
} */

Having that commented out, the detail page is loading as expected. I cannot find any issues caused by those out commented lines 59 to 61.
However, can you please check the compatibility of that part and paste here in that forum the working code part? I'm sure that this might also be helpful for other users.

Thank you and best regards
Fabian

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

More
6 years 10 months ago #19397 by HaiND
Replied by HaiND on topic PHP 7.2 compatibility issue
Hi
Thank you for feedback us
We also do not understand why it works on PHP 7.0.25 but does not work on PHP 7.1.11
And if it does not work then your solution is justified
We will try to find an early solution to the problem as we are still researching and not sure that it is working on different versions of php 7.
Hope you understand and look forward to receiving sympathy
Thanks

Best Regards
--HaiND--

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

More
6 years 8 months ago #20107 by Jurkiewicz
ok any progress with fixing issue? i had the same on 7.0 its working on 7.1 and 7.2 not

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

More
6 years 8 months ago #20117 by HaiND
Replied by HaiND on topic PHP 7.2 compatibility issue
Hi
Thank you for feedback us
Please give me link your site and your account of administrator via private message or mail: 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.

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