No Code Attached Yet
avatar AlexandervanderKemp
AlexandervanderKemp
22 Apr 2023

I’m experiencing an awkward problem that I can't find the answer to.
When creating a new Category an error message appears,
Joomla\CMS\Toolbar\Toolbar::versions(): Argument #2 ($itemId) must be of type int, null given, called in /home/vanderkemp/public_html/administrator/components/com_categories/src/View/Category/HtmlView.php on line 239

Who has a solution for this error, to eventually create a new Category?

System information
Joomla 4.3.0
ea-php80
SEO = no

allow_url_fopen = On
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 2400
max_input_time = 60
max_input_vars = 1000
memory_limit = 2000M
post_max_size = 256M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php80"
upload_max_filesize = 252M
zlib.output_compression = Off
upload_tmp_dir = "/home/vanderkemp/public_html/tmp"

DEBUG information

Call stack

Function Location

1 () JROOT/libraries/src/Toolbar/CoreButtonsTrait.php:511

2 Joomla\CMS\Toolbar\Toolbar->versions() JROOT/administrator/components/com_categories/src/View/Category/HtmlView.php:239

3 Joomla\Component\Categories\Administrator\View\Category\HtmlView->addToolbar() JROOT/administrator/components/com_categories/src/View/Category/HtmlView.php:121

4 Joomla\Component\Categories\Administrator\View\Category\HtmlView->display() JROOT/administrator/components/com_categories/src/Controller/DisplayController.php:111

5 Joomla\Component\Categories\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:678

6 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143

7 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361

8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143

9 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186

10 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293

11 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61

12 require_once() JROOT/administrator/index.php:32

screen shot 2023-04-22 at 18 24 12

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar AlexandervanderKemp AlexandervanderKemp - open - 22 Apr 2023
avatar AlexandervanderKemp AlexandervanderKemp - change - 22 Apr 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Apr 2023
avatar Fedik
Fedik - comment - 22 Apr 2023

Hello,
What exactly you trying, just "push new button" or eny extra steps?

For test, please try change:


to:

$isNew = !empty($this->item->id);
avatar Puntje1000
Puntje1000 - comment - 22 Apr 2023

There is a big bug in the form login in Joomla 4.3. many errors.

I have an The server returned a "500 - Whoops, looks like something went wrong." error. In php 7.4. I see the website in php 8 and more I get the error The server returned a "500 - Whoops, looks like something went wrong."

I hope the developers of joomla make a new update, so that the website just shows again, even though people can log in

With another website, I had to clear the public_html and mysql database and restore the backup, which did nothing. Not even in backend. I did not update website after that. Also a login in php. But that bug was very big


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40456.

avatar richard67
richard67 - comment - 23 Apr 2023

@Puntje1000 Your comment is not really related to this issue here.

avatar chmst
chmst - comment - 23 Apr 2023

@AlexandervanderKemp In Articles, Contact and other Joomla core categories I cannot replicate this error. Are you working with an extension?

avatar AlexandervanderKemp
AlexandervanderKemp - comment - 23 Apr 2023

@Fedik
Thank you for your response, I followed up on your test.
Unfortunately, there was no improvement or a different error by our lovely Debug.
Tested this:
$isNew = ($this->item->id == 0);
Change to:
$isNew = !empty($this->item->id);
Unfortunately, there was no improvement or a different error by our lovely Debug.
If you have any suggestions or want to see it in a live situation, no problem.

What I’m trying to do? Create a category, nevertheless, I can proceed with the single-article format.
Why I posted this, within my belief that Joomla is outstanding and versatile. Joomla is disliked by the quick and dirty limited internet sites that pop up and leave.
I’m not excellent at this. Ask me to negotiate a business deal and I’ll be better off.
Let me know if you have any suggestions.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40456.
avatar AlexandervanderKemp
AlexandervanderKemp - comment - 23 Apr 2023

@chmst
Thank you for your response, I’m directly in Categories. Not using a different extension.
Clicking + New, and the error with debug as in the picture appears.

In extensions I’ve seen that the Categorie is Locked, all normal. And choose to Refresh Cache.
This ended in a frozen page when Clicking + New in Categories.
I did a Graceful Server Reboot (WHM) of the dedicated server and back to the error message as before.

In my root where I made a test before, different database, the same Template and is in Joomla 4.2.8, I didn't update to 4.3.0, and here Clicking + New in Categories functions all fine.

I’m open to updates and new suggestions, nevertheless, I can proceed with the single-article format.

Let me know if you have any suggestions.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40456.
avatar AlexandervanderKemp
AlexandervanderKemp - comment - 23 Apr 2023

@richard67
Hello Richard,

Can you please read the two comments I wrote on the matter in + New in Categories?
Perhaps you have an Idea, or solution, or can redirect the matter.

Many thanks in advance.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40456.
avatar AlexandervanderKemp
AlexandervanderKemp - comment - 23 Apr 2023

Dear @Puntje1000

Issues are there to be resolved, in a team as a challenge. We understand that everyone wishes to be heard. The journey is where we are living, the solution is within our journey.
It is interesting to read that one has similar issues to be solved.

In excellence, and teamwork we reach out for solutions.

I sincerely believe that you found your best solution Puntje1000, I wish you a great day.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40456.
avatar richard67 richard67 - change - 26 Apr 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-04-26 12:37:08
Closed_By richard67
avatar richard67
richard67 - comment - 26 Apr 2023

Closing as having a pull request. Please test #40484 . Thanks in advance.

avatar richard67 richard67 - close - 26 Apr 2023
avatar stewart9643
stewart9643 - comment - 25 May 2023

I have the same issue. Was there a solution that I missed?
Thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40456.

avatar richard67
richard67 - comment - 25 May 2023

@stewart9643 The pull request #40484 with the fix has been merged so it will be in the upcoming 4.3.2.

Add a Comment

Login with GitHub to post a comment