Joomla-cms: [4.0] Error when trying to save new article

Created on 21 Jan 2019  路  9Comments  路  Source: joomla/joomla-cms

Steps to reproduce the issue

Navigate to the following page from the admin page
content >> Articles >> New
add some contents and try to save

Expected result

A new article should be saved

Actual result

it throws an error
Save failed with the following error: Incorrect integer value: '' for column 'hits' at row 1

J4 Issue No Code Attached Yet

Most helpful comment

Issue confirmed.


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

All 9 comments

Issue confirmed.


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

Also confirmed here.

@alikon ?

I solved this here by adding
$data['hits'] = 0;
line 922 of /administrator/components/com_content/Model/ArticleModel.php
but I think this is just a hack as default hits is set as 0 is db.

hmmm... see #23638...

I get the same issue when saving articles on Joomla 4, alpha 7 with the trial account with cloud access. Receive "Error
Save failed with the following error: Incorrect integer value: '' for column 'hits' at row 1".

I get the same message when adding to the contacts component as well.


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

Joomla4, alpha7 does not contain https://github.com/joomla/joomla-cms/pull/23638

Confirmed for Contact. Will make patch for that one.

I get the same issue when saving articles on Joomla 4, alpha 7 with the wamp server


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

Was this page helpful?
0 / 5 - 0 ratings