1. DarkoF
  2. RO CSVI
  3. Tuesday, 13 August 2024
  4.  Subscribe via email
Hi
during update to 8.12.0 I have some issue notice about unique key and failed update but I install plugin again and all working.

Now when I try to create new template or just enter and save existing one again I get 500 server error

This is debug lines:


Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /public_html/administrator/components/com_csvi/models/template.php on line 328

Deprecated: Optional parameter $cid declared before required parameter $vendorId is implicitly treated as a required parameter in /public_html/plugins/geekelasticsearch/vmproduct/vmproduct.php on line 461

Deprecated: Optional parameter $level declared before required parameter $vendorId is implicitly treated as a required parameter in /public_html/plugins/geekelasticsearch/vmproduct/vmproduct.php on line 461

Deprecated: Optional parameter $onlyPublished declared before required parameter $vendorId is implicitly treated as a required parameter in /public_html/plugins/geekelasticsearch/vmproduct/vmproduct.php on line 461

Fatal error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void in /public_html/administrator/components/com_csvi/assets/google/vendor/psr/log/Psr/Log/NullLogger.php on line 26
FatalError
HTTP 500 Whoops, looks like something went wrong.
Compile Error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void
Symfony\Component\ErrorHandler\Error\
FatalError
Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#1956 ▼
-error: array:4 [▶]
}
in /public_html/administrator/components/com_csvi/assets/google/vendor/psr/log/Psr/Log/NullLogger.php (line 26)
* * @return void * * @throws \Psr\Log\InvalidArgumentException */ public function log($level, $message, array $context = array()) { // noop }}
Accepted Answer Pending Moderation
Other ways existing template for export I tested them and they work
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,
When you installed RO CSVI 8.12.0 package did it go without any errors? The fatal errors you posted comes from Google library and was fixed in RO CSVI 8.12.0 version. Since you are seeing these error I am guessing RO CSVI update did not go well.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hi
As I wrote in start during update to 8.12.0 I have some issue notice about unique key and failed update

But I install package again and update go well second time.
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
After update I get this errors, even if update itself go well second time
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
We have added code in RO CSVI 8.12.0 version to copy files into Google library and that did not work in your installation and so the error. To solve this, go to folder administrator/components/com_csvi/assets/google/vendor/psr/log/Psr/Log either copy the content of file LoggerInterface5.php to LoggerInterface.php or rename LoggerInterface.php to LoggerInterface_old.php and LoggerInterface5.php to LoggerInterface.php. That should solve the error. Let me know on how it goes.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Dear Tharuna

Must be something else. I backup Templates and did fresh install I uninstall Ro Csvi, unistall all csvi plugins and then I delete all tables in database with _csvi_ name.

I install fresh installation installation was go trough fine and when I try to create fresh template I get the same error.

J 5.1.2
VirtueMart 4.2.16 11030
PHP Version 8.3.6

I have another domain wit exact same settings and there RO csvi 8.12 work fine
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
When I restore template backups it success and working. So strange
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
Hello,
Did you try the solution posted in my previous reply? Doing a fresh install will not help if needed file is not update with installation so please try to copy the file as suggested and see if the error is solved.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hi
Yes this was first what I did but I can see there is no difference in files both are 3.06 kb and i check also with working instance just to be sure if is any difference in code. So this is not solution
  1. more than a month ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
Hello,

but I can see there is no difference in files both are 3.06 kb
Did you check the contents of the file? The end should have a function like this:

public function log($level, string|\Stringable $message, array $context = array());
If you have that, the error is not coming from this file. In your previous post you only post a screenshot of the error. Can you also post the Stack trace when you get the error? That will tell us where the error originates. You can get the Stack trace by clicking on the tab called Stack trace on the error page.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
This is the end

/**
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $message
* @param mixed[] $context
*
* @return void
*
* @throws \Psr\Log\InvalidArgumentException
*/
public function log($level, string|\Stringable $message, array $context = array());
}
  1. more than a month ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
This is Stack Trace:


FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void

at /public_html/administrator/components/com_csvi/assets/google/vendor/psr/log/Psr/Log/NullLogger.php:26
  1. more than a month ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Hello,
Thank you for the details but it would be nice if you can post us the whole of stack trace. As of now we do not know the source file where the error is coming from. Please send us full stack trace to check.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
Here are screenshots
Don't know what else should send
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 14
Accepted Answer Pending Moderation
So first I upload again fresh only /administrator/components/com_csvi/ com_csvi folder I uload all manually so I make sure all files ar updatet.

Error was still there.

Then I uninstall 8.12 and install 8.11.2 and all work as should.

Update don't work at the moment.

But on some other domain with the same joomla and virtuemart version working OK so I don't know what on this particular instance is wrong.
  1. more than a month ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
Hello,
But on some other domain with the same joomla and virtuemart version working OK so I don't know what on this particular instance is wrong.

Are these domains are on same server? There is a possibility that update did not go good even though it says so when RO CSVI is installed second time.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 16
Accepted Answer Pending Moderation
Hi, they are on same hosting provider with the same server settings but different servers.
  1. more than a month ago
  2. RO CSVI
  3. # 17
Accepted Answer Pending Moderation
Hello,

So that stack trace is not really a stack trace if it only shows the same error :D Can you post (S)FTP and Joomla login details for me to check what is going on? I am sure it is not that file we spoke about but some other one, just need to figure out which one.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 18
Accepted Answer Pending Moderation
Hi
Fortunately I downgrade back to 8.11.2 and now is working. But I'm ensure you there in nothing problem with files, must be something else, maybe server settings
  1. more than a month ago
  2. RO CSVI
  3. # 19
Accepted Answer Pending Moderation
Hello,

With the information we have here it is nearly impossible to say where this goes wrong, that is why I asked for the server login details in my previous post to investigate. This is also due to the magic of autoloaders. It is an abyss :D

Would you like to investigate this further or leave it at this?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
Be one of the first to reply to this post!