Hello all!
Getting this error when trying to run many of my templates:
"Undefined constant GuzzleHttp\ClientInterface::VERSION"
They were working before, using latest CVSI and Virtuemart 4.4.0.
Rgrds,
Chris
CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31
Hi Chris,
They were working before
What did you change? I assume these are Google templates as that is the only part in RO CSVI where Guzzle is used and not even by RO CSVI itself but by the Google library. This looks like a conflict between Guzzle libraries. Perhaps another extension/plugin is loaded that refers to the same namespace and as such an external library is loaded and not the one supplied with RO CSVI.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Thanks Roland,
Yeah these are Google sheet templates. To be honest i haven't installed any new plugin in a long time, only updates. Apparently another plugin or smth is using also Guzzle and most probably a different version. Would it be possible to disable CSVI's guzzle for further troubleshooting?
Regards,
Chris
CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31
Hello Chris,
Would it be possible to disable CSVI's guzzle for further troubleshooting?
Guzzle is part of Google library and is not a plugin in RO CSVI to disable. For troubleshooting you can try removing the folder in Google library at administrator/components/com_csvi/assets/google/vendor/guzzlehttp. But remember to put this folder back to continue to use Google templates.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Hi Tharuna,
Removing the folder causes issues, so i leave it as is. However i noted the following in my apache error log, perhaps it can help?
Got error 'PHP message: PHP Warning: Class "Google_Service" not found in /home/qttest/public_html/administrator/components/com_csvi/assets/google/vendor/google/apiclient-services/autoload.php on line 21, referer: https://www.quality-tuning.eu/administrator/index.php?option=com_csvi&view=templates
Also the specifics for the Guzzle error:
Error message data:
E_ERROR:1 0: Undefined constant GuzzleHttp\ClientInterface::VERSION in file: t/public_html/administrator/components/com_csvi/assets/google/vendor/google/apiclient/src/Google/Client.php line: 1129
I grep the server, i don't see any other active uses of Guzzle by any extensions
Regards,
Chris
CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31
Hello Chris,
These error are from Google library RO CSVI uses for Google templates. There is something gone wrong with this library and so you see these error.
Two things
- Can you try installing RO CSVI 8.12.1 version again and see if it makes any difference?
- Which PHP version you are using?
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Hello Chris,
Also set error reporting to maximum in Template Details tab and run the export. Post the stack trace so we can check.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Thanks Tharuna,
Reinstalling CSVI doesn't solve the issue. PHP version is 8.0.30.
I can't edit the template at all, i get the same error. I send you attached some backtrace/log info i get from another logging extension.
Regards,
Chris
CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31
Hello Chris,
Thank you for the log file. I found something in the log file you sent. Starting RO CSVI 8.12.0 version we include Google library as part of RO CSVI Installation which means users don't need to install Google library using composer. Now looking at the backtrace file I see old Google library files are used. Say for example /home/qttest/public_html/administrator/components/com_csvi/assets/google/vendor/google/apiclient/src/Google/Client.php:1129. This file does not exists in new Google library. I am thinking these old library files are creating errors. Please remove or rename google folder at /home/qttest/public_html/administrator/components/com_csvi/assets/google and then reinstall RO CSVI 8.12.1 version. See if that solves your errors.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Many thanks Tharuna, that seems to have solved the issue!
Rgrds,
Chris
CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31
Log in to reply to this topic.