J4 Issue ?
avatar amitranjan2
amitranjan2
21 Jan 2019

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

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
3.00

avatar amitranjan2 amitranjan2 - open - 21 Jan 2019
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jan 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Jan 2019
avatar ghazal
ghazal - comment - 22 Jan 2019

Issue confirmed.


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

avatar infograf768 infograf768 - change - 22 Jan 2019
Labels Added: J4 Issue
avatar infograf768 infograf768 - labeled - 22 Jan 2019
avatar infograf768
infograf768 - comment - 22 Jan 2019

Also confirmed here.

avatar infograf768
infograf768 - comment - 22 Jan 2019
avatar infograf768
infograf768 - comment - 22 Jan 2019

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.

avatar alikon
alikon - comment - 22 Jan 2019

hmmm... see #23638...

avatar amitranjan2 amitranjan2 - change - 22 Jan 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-01-22 19:09:13
Closed_By amitranjan2
avatar amitranjan2 amitranjan2 - close - 22 Jan 2019
avatar jeremysmartin399
jeremysmartin399 - comment - 27 Jan 2019

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.

avatar infograf768
infograf768 - comment - 27 Jan 2019

Joomla4, alpha7 does not contain #23638

Confirmed for Contact. Will make patch for that one.

avatar infograf768
infograf768 - comment - 27 Jan 2019

For contact, please test #23688

avatar Leen29
Leen29 - comment - 7 Feb 2019

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.

Add a Comment

Login with GitHub to post a comment