?
avatar riccardoughi
riccardoughi
12 Nov 2015

I think line 56 in ajax.php file should be:

if ($moduleObject->id != -1)

and not:

if ($moduleObject->id != 0)

Thank you.

avatar riccardoughi riccardoughi - open - 12 Nov 2015
avatar Bakual
Bakual - comment - 13 Nov 2015

Can you elaborate what the issue is you are seeing and why you think that line needs to be changed?
And since you already propose a code change, can you do a Pull Request? Seehttps://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests for how to do that (it's simple!)

avatar zero-24 zero-24 - change - 13 Nov 2015
Labels Added: ?
avatar drjjw
drjjw - comment - 13 Nov 2015
avatar Bakual
Bakual - comment - 13 Nov 2015

Looks like you posted in the wrong issue ;)

avatar riccardoughi
riccardoughi - comment - 17 Nov 2015

If the module.id is verified ( != 0) I receive this also if module is published for my home page:

"LogicException: Module mod_k2_k_content is not published, you do not have access to it, or it's not assigned to the current menu item"

Putting "if ($moduleObject->id != -1)" avoid verification, but I investigate a little bit more and may be I have found the real issue. In getModuleList() in libreries/cms/module/helper.php at line 370:

Itemid = $app->input->getInt('Itemid');

The problem is that "Itemid" in home page doesn exist !

Thank you

avatar Bakual
Bakual - comment - 17 Nov 2015

The URL for the homepage should have an implied Itemid imho.

avatar riccardoughi
riccardoughi - comment - 19 Nov 2015

Ok, thank you.

avatar zero-24 zero-24 - change - 25 Nov 2015
Category Components
avatar vieuxcampus
vieuxcampus - comment - 14 Jan 2016

I get the same issue as riccardoughi. Com_ajax gives the same error message when called from the home page.
ie http://localhost ->doesnot work
http://localhost/blog ->works (blog is the homepage menu title which is not added to the referrer call)
How can I get this fixed ?
thanks


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

avatar brianteeman brianteeman - change - 10 May 2016
Status New Confirmed
avatar C-Lodder
C-Lodder - comment - 5 Apr 2017

@brianteeman - can this be closed? No testing instructions provided and cannot replicate the issue. Have never had any problems with com_ajax myself having used it serveral times

avatar brianteeman
brianteeman - comment - 5 Apr 2017

Nothing to do with me

avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2017
The description was changed
Status Closed - Unconfirmed Report Confirmed
avatar joomla-cms-bot joomla-cms-bot - edited - 5 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2017
Status Confirmed Closed
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 5 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status Confirmed Closed - Unconfirmed Report
Closed_Date 0000-00-00 00:00:00 2017-04-05 08:30:36
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Apr 2017

closed as unconfirmed Report.


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

Add a Comment

Login with GitHub to post a comment