Hi I am trying to fix Simple blog tutorial. One bug that I am found was this word "action" instead of "actions"
Simplge blog plugin is working but when I try to Save a post it takes me to the error page
the requested url was not found...
Any Ideas why?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
The URL should use "action" and the directory should use "actions". Elgg uses mod_rewrite to send the action to the correct action handler.
Here's the reference on actions: http://docs.elgg.org/wiki/Actions
Ahh sorry my mistake.
Now is it working but I get error.
The requested action (blog/save) was not defined in the System.
This code is in start.php
Who requests the action blog/save
And where can I define it?
If I get this tutorial working I will make a video tutorial to this docs tutorial
This tutorial assumes you are not running the standard blog plugin.
You register the blog action in the plugin's start.php. It is called from the form that creates the blog entry (I think it is in add.php).
If a file does not exist, the action does not get registered. Add a check on the return value. The register_action call may be failing because the file does not exist.
Standard blog plugin is disabled. Only one plugin is enabled. Simple blog
Thanks for help I will check it out.
EDIT: add.php is placed in /mod/blog/add.php
This was my problem I am not native english speaking man :))) ;))
This line in documentation irritated me:
"The form should have input fields for the title, body and tags, and direct to
/action/blog/save
:"Slash before action... :) I thought this is actions directory...
And I made this structure and put there save.php file /mod/blog/actions/blog/save.php
But it should be placed in /mod/blog/actions/save.php
Many Thanks Cash
promised video how to is coming soon... :)
We should add a note to this tutorial. Tutorial for elgg version 1.5 1.6 because of action tokens of 1.7
I updated the tutorial and added a security token so that it will work with 1.5 to 1.7
As promised
Simple blog video tutorial
http://dieterkonrad.com/blog5.php/elgg-plugins-easy/
@alfalive, there is no video on that address could you give us new link
- Previous
- 1
- 2
- Next
You must log in to post replies.