Hello,
I have installed the GK Reporter Quickstart Pack for Joomla 4.
From an old website, I imported articles, users, etc., into the database.
What doesn't work:

  1. When creating a new menu, the error appears: Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/veterin/sterg.veterinarul.ro/plugins/system/jacontenttype/jacontenttype.php on line 421.

  2. When installing a new language, the website does not open, and the error appears: 0 Failed to parse time string (04.Septembrie) at position 7 (e): The timezone could not be found in the database.

All folders have correct permissions.
The configuration.php file is correct.
I believed that creating a new website and importing data from the old site would lead to better performance, but it seems that there are more issues than anticipated.

What should be done?

    This message is visible to Moderators only
    hidden content

      veterinarul Could you check the FTP account again? as I can't access it now.

      I tried to check files via backend but your backend throws timeout error:

      Sorry, but from which country are you accessing the host? it can only be accessed from the US, Canada and the EU. You have to tell me the country to unlock it.

      And the idea is that I have to install this template on some sites. Do I have to ask you to intervene at each one?

      Vietnam... dangerous country. I allowed access. I'm sorry but not everyone is fair. the last meeting with fellow IT hackers from Vietnam blocked my sites.

      Hi

      I updated a bit this file: /plugins/system/jacontenttype/jacontenttype.php

      protected function _onContentPrepareFormMenuEdit($form, $data) {
          $pattern = '/^index\.php\?option=com_content\&view=form\&layout=edit(&contenttype=.*)?/i';
      
          // Check if $data exists and is a string
          if ((is_array($data) && isset($data['link']) && is_string($data['link']) && preg_match($pattern, $data['link']))
              || (is_object($data) && isset($data->link) && is_string($data->link) && preg_match($pattern, $data->link))
          ) {
              $this->addFormPath();
              $form->loadFile('com_menus.item.com_article.form.edit', false);
          }
      }

      veterinarul When installing a new language, the website does not open, and the error appears: 0 Failed to parse time string (04.Septembrie) at position 7 (e): The timezone could not be found in the database.

      About this error, which language you installed so I can replicate this error?

      wow... the language works.
      If you didn't work, I don't know what happened.

      Thank you very much for your help. A great day

        Write a Reply...
        You need to Login to view replies.