unexpected 'JArrayHelper' (T_STRING) Error after updating jComments

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
mgrkovic
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 29, 2009 7:17 pm

unexpected 'JArrayHelper' (T_STRING) Error after updating jComments

Post by mgrkovic » Wed Aug 15, 2018 6:41 pm

Today, I was updating extensions in my site, too.
I've labelled a few - JComments was among them.
Then, appears an error warning:
syntax error, unexpected 'JArrayHelper' (T_STRING)

After that, a can't open the page or access the back end panel.
I have the latest version of Joomla and PHP version is 7.1
@Sozzled, it's here really the problem with JComments version 3.0.7

Please, can someone help me?
Last edited by imanickam on Thu Aug 16, 2018 3:31 am, edited 1 time in total.
Reason: Split from the topic https://forum.joomla.org/viewtopic.php?f=706&t=964638.

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5848
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Can't open Joomla adminstrative panel

Post by sozzled » Wed Aug 15, 2018 6:53 pm

mgrkovic wrote:
Wed Aug 15, 2018 6:41 pm
Today, I was updating extensions in my site, too ... JComments was among them.
As I wrote in another place today, I haven't tried the new release of JComments 3.0.7 and so I cannot comment except to say there have been three other coincidences reported in the past 12 hours or so.

mgrkovic wrote:
Wed Aug 15, 2018 6:41 pm
I have the latest version of Joomla and PHP version is 7.1
I have no way of knowing whether the developer's release JComments 3.0.7 works with J! 3.8.11 and PHP 7 and so I cannot comment.

I can say, however, that the forked version of JComments that I'm using (based on v3.0.5) works well with J! 3.8.11 and PHP 7.

If your administrator site is broken and you cannot access it, I would suggest the easiest way to overcome that problem is to restore the site from a backup.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

mgrkovic
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 29, 2009 7:17 pm

Solution: Can't open Joomla adminstrative panel

Post by mgrkovic » Wed Aug 15, 2018 9:37 pm

Here is a solution to the problem with JComments 3.0.7:
Joomla version is 3.8.11 and PHP version is 7.1
1. With FileZilla or on another way, rename folder "public_html/plugins/system/jcomments" to "public_html/plugins/system/jcomments1".
2. We can now enter in the backend administrator panel.
3. Download "Jcomments-Recaptcha2-Develop.zip" from https://github.com/exstreme/Jcomments-Recaptcha2
4. Install the file "Jcomments-Recaptcha2-Develop.zip" in Joomla.
5. If everything is OK – delete folder " jcomments1" in "public_html/plugins/system/".

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5848
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Can't open Joomla adminstrative panel

Post by sozzled » Wed Aug 15, 2018 10:09 pm

Thanks, @mgrkovic. I will need to test this new forked version of JComments.

I notice that line 199 in the file /components/com_jcomments/tpl/default/tpl_form.php reads

Code: Select all

		if (count($customBBCodes)) {
This could result in a warning in PHP 7.2—count(): Parameter must be an array or an object that implements Countable—if $customBBCodes returns as NULL. There may be a regression with an issue I reported https://github.com/exstreme/Jcomments-R ... 2/issues/4
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?


Post Reply

Return to “Extensions for Joomla! 3.x”