Unclosed string at position: xxxx - after update to 3.9.19 Topic is solved

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: 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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 12:09 am

Hello.

Joomla! 3.9.19 Stable [ Amani ]
PHP Version 7.2.31
Database Type mysql
Database Version 5.7.30

Upgraded to latest Joomla ( 3.9.19 from 3.9.18) and I'm receiving the message: Unclosed string at position: xxxx

whenever I click the "contact" link.

All menu items are correct and the contact form is available. All other links are fine.

Cleared cache and problem persists.

Any help in troubleshooting would be appreciated.

thank you and everyone who reads this - please stay safe and social distance like we are Brooklyn, NY.
Last edited by toivo on Wed Jun 03, 2020 12:44 am, edited 1 time in total.
Reason: mod note: moved from 3.x Administration

 
bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx

Post by bulgin » Wed Jun 03, 2020 12:16 am

UPDATE: this is also happening on yet another website I manage when going from 3.9.18 to 3.9.19

Hmmmmm.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12538
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by toivo » Wed Jun 03, 2020 2:28 am

Please increase the level of error reporting in Global Configuration to 'Maximum' and turn on the Debug System option. Enable and configure the plugin System - Debug and configure it for your usergroup, Super Users, and select to 'Log almost everything'.

Login and repeat the the test. The errors and trace will be displayed, but you will also find the details in the file administrator/logs/everything.php. Post the trace here for advice.
Toivo Talikka, Global Moderator

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 2:53 am

Thanks for that. When I follow the steps above, the problem disappears - I can see the contact form. If I turn off all the logging, the problem comes back.

There is no file called everything.php in /administrator/logs only:
jcontroller.log.php
error.php
joomla_update.php
1.error.php

are you talking about the expandable options in the Global Configuration - System page?

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 2:56 am

I do see messages about "duplicate" queries in the database queries section though.

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 2:59 am

Ok. Now there is an everything file and it only contains:

#Fields: datetime priority clientip category message
2020-06-03T02:57:39+00:00 INFO 127.0.0.1 controller Checking edit ID com_plugins.edit.plugin.425: 1 Array ( [0] => 425 )
2020-06-03T02:57:46+00:00 INFO 127.0.0.1 controller Releasing edit ID com_plugins.edit.plugin.425 Array ( )

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12538
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by toivo » Wed Jun 03, 2020 3:01 am

Yes, the System tab - Debug Settings, where the selection for Debug System should be 'Yes' before the log file everything.php is created and updated.

I was not able to reproduce the behaviour in my test site.

Do not worry about the message about duplicate queries. You can turn off listing of queries from the plugin System - Debug.
Toivo Talikka, Global Moderator

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12538
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by toivo » Wed Jun 03, 2020 3:02 am

It is very odd if the message returns after debugging has been stopped. Have you cleared the cache in both the browser and Joomla itself?
Toivo Talikka, Global Moderator

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 3:08 am

Here you go:

#
#<?php die('Forbidden.'); ?>
#Date: 2020-06-03 02:57:39 UTC
#Software: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

#Fields: datetime priority clientip category message
2020-06-03T02:57:39+00:00 INFO 127.0.0.1 controller Checking edit ID com_plugins.edit.plugin.425: 1 Array ( [0] => 425 )
2020-06-03T02:57:46+00:00 INFO 127.0.0.1 controller Releasing edit ID com_plugins.edit.plugin.425 Array ( )
2020-06-03T03:00:26+00:00 CRITICAL 127.0.0.1 error Uncaught \Throwable of type RuntimeException thrown. Stack trace: #0 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/classes/Minifier.php(230): JShrink\Minifier->saveString()
#1 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/classes/Minifier.php(143): JShrink\Minifier->loop()
#2 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/classes/Minifier.php(109): JShrink\Minifier->minifyDirectToOutput('var JFormValida...', Array)
#3 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/helixultimate.php(857): JShrink\Minifier::minify('var JFormValida...', Array)
#4 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/helixultimate.php(602): HelixUltimate->compress_js('core.js, tinymc...')
#5 /var/www/html/xxxxxx.com/templates/shaper_helixultimate/index.php(162): HelixUltimate->after_body()
#6 /var/www/html/xxxxxx.com/libraries/src/Document/HtmlDocument.php(668): require('/var/www/html/r...')
#7 /var/www/html/xxxxxx.com/libraries/src/Document/HtmlDocument.php(730): Joomla\CMS\Document\HtmlDocument->_loadTemplate('/var/www/html/r...', 'index.php')
#8 /var/www/html/xxxxxx.com/libraries/src/Document/HtmlDocument.php(545): Joomla\CMS\Document\HtmlDocument->_fetchTemplate(Array)
#9 /var/www/html/xxxxxx.com/libraries/src/Application/CMSApplication.php(1030): Joomla\CMS\Document\HtmlDocument->parse(Array)
#10 /var/www/html/xxxxxx.com/libraries/src/Application/SiteApplication.php(778): Joomla\CMS\Application\CMSApplication->render()
#11 /var/www/html/xxxxxx.com/libraries/src/Application/CMSApplication.php(202): Joomla\CMS\Application\SiteApplication->render()
#12 /var/www/html/xxxxxx.com/index.php(49): Joomla\CMS\Application\CMSApplication->execute()
#13 {main}

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 3:09 am

Yes cleared cache and even used a different browser. Only shows when debuging is off. Turn on debugging and everything works. Strange indeed!

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12538
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by toivo » Wed Jun 03, 2020 6:16 am

When this PHP critical error occurs, is the message 'Unclosed string' also displayed?

The message 'Unclosed string' is not part of the Joomla core. If the message 'Unclosed string' and the PHP critical error are related, it looks like they originate from the template Helix Ultimate and the system plugin Helix Ultimate, when it is minifying javascript files.
Toivo Talikka, Global Moderator

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 11933
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by brian » Wed Jun 03, 2020 7:22 am

The problem is originating with the minifier script from the template.
The minifier script is only run when debugging is off.
The error message "Unclosed string at position" is coming from the minifier
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 11:57 am

So the solution lies with the template, not Joomla files, correct?

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 12:49 pm

Should this topic be moved to Administration?

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 12:55 pm

The only minifier.XXX I can find is within kcfinder, not the template.

mikevan
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jun 03, 2020 1:23 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by mikevan » Wed Jun 03, 2020 1:25 pm

I disabled "Compress JS Files" in Helix Ultimate Template Options and all is working again. Hopefully they will correct this in a future update.

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 1:48 pm

Thanks MikeVan - I can confirm that also works for me. Yes, I hope they update the template to fix this.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20118
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by leolam » Wed Jun 03, 2020 4:18 pm

Make sure that your helix installed package is up-to-date with latest versions of template and plugins... If these are up-to-date it should not happen

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services

cjamesrun
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Jul 14, 2006 5:13 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by cjamesrun » Wed Jun 03, 2020 4:19 pm

Thanks. I also had to disable The Helix Javascript compression on my site via the Helix Ultimate Framework in the theme. As soon as I did that, the error went away and I could log into the Frontend for editing with the SP Page Builder --- Helix Ultimate is up to date Version 1.1.2 21 Jan 2020

bulgin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 207
Joined: Sun Sep 30, 2007 10:18 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by bulgin » Wed Jun 03, 2020 5:09 pm

I've sent the Helix people a message, but it would help if others did, too.

tbachner
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jun 04, 2020 4:18 am

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by tbachner » Thu Jun 04, 2020 4:23 am

Thank you for the thread folks. Same issue here

User avatar
darb
Joomla! Ace
Joomla! Ace
Posts: 1609
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden
Contact:

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by darb » Thu Jun 04, 2020 6:16 am

Thank you for the thread folks. Same issue here
Success in the long run Its not about the code its about the people and community that's make it!
Its not what you say its what you do that matters!

Darb - aka ssnobben

sajeeb07ahamed
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jun 04, 2020 5:07 pm

Re: Unclosed string at position: xxxx - after update to 3.9.19

Post by sajeeb07ahamed » Thu Jun 04, 2020 5:26 pm

bulgin wrote:
Wed Jun 03, 2020 3:08 am
Here you go:

#
#<?php die('Forbidden.'); ?>
#Date: 2020-06-03 02:57:39 UTC
#Software: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

#Fields: datetime priority clientip category message
2020-06-03T02:57:39+00:00 INFO 127.0.0.1 controller Checking edit ID com_plugins.edit.plugin.425: 1 Array ( [0] => 425 )
2020-06-03T02:57:46+00:00 INFO 127.0.0.1 controller Releasing edit ID com_plugins.edit.plugin.425 Array ( )
2020-06-03T03:00:26+00:00 CRITICAL 127.0.0.1 error Uncaught \Throwable of type RuntimeException thrown. Stack trace: #0 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/classes/Minifier.php(230): JShrink\Minifier->saveString()
#1 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/classes/Minifier.php(143): JShrink\Minifier->loop()
#2 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/classes/Minifier.php(109): JShrink\Minifier->minifyDirectToOutput('var JFormValida...', Array)
#3 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/helixultimate.php(857): JShrink\Minifier::minify('var JFormValida...', Array)
#4 /var/www/html/xxxxxx.com/plugins/system/helixultimate/core/helixultimate.php(602): HelixUltimate->compress_js('core.js, tinymc...')
#5 /var/www/html/xxxxxx.com/templates/shaper_helixultimate/index.php(162): HelixUltimate->after_body()
#6 /var/www/html/xxxxxx.com/libraries/src/Document/HtmlDocument.php(668): require('/var/www/html/r...')
#7 /var/www/html/xxxxxx.com/libraries/src/Document/HtmlDocument.php(730): Joomla\CMS\Document\HtmlDocument->_loadTemplate('/var/www/html/r...', 'index.php')
#8 /var/www/html/xxxxxx.com/libraries/src/Document/HtmlDocument.php(545): Joomla\CMS\Document\HtmlDocument->_fetchTemplate(Array)
#9 /var/www/html/xxxxxx.com/libraries/src/Application/CMSApplication.php(1030): Joomla\CMS\Document\HtmlDocument->parse(Array)
#10 /var/www/html/xxxxxx.com/libraries/src/Application/SiteApplication.php(778): Joomla\CMS\Application\CMSApplication->render()
#11 /var/www/html/xxxxxx.com/libraries/src/Application/CMSApplication.php(202): Joomla\CMS\Application\SiteApplication->render()
#12 /var/www/html/xxxxxx.com/index.php(49): Joomla\CMS\Application\CMSApplication->execute()
#13 {main}

This is the problem of

Code: Select all

JShrink\Minifier
, And I've figured it out that it cannot minify the

Code: Select all

validate.js
file at

Code: Select all

media/system/js/validate.js
. There is a subtle change in this file. You can use the

Code: Select all

validate.js
file of the previous version of Joomla! or for now, turn off the compress js of Helix Ultimate.

There is a new major update of *HU* will be released within a short time. Before that please use this technique.

 

Post Reply

Return to “Migrating and Upgrading to Joomla! 3.x”