I think line 56 in ajax.php file should be:
if ($moduleObject->id != -1)
and not:
if ($moduleObject->id != 0)
Thank you.
Labels |
Added:
?
|
OK, that's done:
Looks like you posted in the wrong issue ;)
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
The URL for the homepage should have an implied Itemid imho.
Ok, thank you.
Category | ⇒ | Components |
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
Status | New | ⇒ | Confirmed |
@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
Nothing to do with me
Status | Closed - Unconfirmed Report | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Status | Confirmed | ⇒ | Closed - Unconfirmed Report |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-05 08:30:36 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/8408
closed as unconfirmed Report.
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!)