Static Pages
Maintained by
Alexander Bias, Moodle an Hochschulen e.V.
Moodle plugin which displays static information pages which exist outside any course, imprint or faq pages for example, complete with Moodle navigation and theme
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
If you look at /admin/settings.php?section=staticpage, your HTML files should be listed there. Is the output of this list ok or are there error messages?
I installated this plugin succesfully. And cnfigurated it "Not using mod_rewrite"
/local/staticpage/view.php?page=FAQ
but when I'm trying to enter tha pagr, I'm getting error:
"page not found"
Any suggestions why it happens?
Plug-in works for 2.7 as well, Please update records for compatibility with 2.7 so people wont hesitate downloading.
that's great, glad I could help.
Alex
the problem was in the permissions, I did reset the permissions from my webserver administrator and now the plugin works perfectly.
thanks for your support and for your patience
Carlo.
I am not familiar with the suEXEC Apache extension. But a little Google research about your error message told me that your webserver might have insufficient rights to access the plugin files on /local/staticpage or the staticpage files in your moodledata root: http://www.pranavpc.com/2010/12/solution-for-suexec-policy-violation-error-that-occurs-in-some-webhosts/.
Please have a deeper look at this and talk to your webserver admin if necessary as this problem is beyond the scope of my plugin.
Alex
AH01215: suexec policy violation: see suexec log for more details, referer http://www.mysite.com/moodle/admin/settings.php
and
End of script output before headers: view.php, referer http://www.mysite.com/moodle/admin/settings.php
thanks
Carlo
if both URLs are marked with an error message and if www.mysite.com/moodle/local/staticpage /view.php?page=index gives you an internal server error, there is something fundamentally going wrong.
- You need to check if your webserver is able to read the static page files in your moodledata directory. I don't know your webserver (Apache, nginx, IIS...), so I can't give you a bulletproof hint how to check this. Please talk to your webserver administrator.
- You need to check your webserver logs. If there is an internal server error, there might be a error message in the logs which will give us a hint what's the problem.
Alex
the link: www .mysite.com / mooodle / static ... call the 404 page not found page of the main site
(which is in wordpress)
while the link www .mysite.com/ moodle/local/staticpage /view.php?page=index
gives an internal server error
My moodle is located in a subdirectory: www.mysite.com/moodle
and the folder "moodledata" is out of moodle: www.mysite.com/moodledata
I do not know how to check if the webserver has permission to read the static pages.
All URL are both marked as an error!
thanks
Charles.
well, there have been discussions here in the comments section about similar problems before. I admit that this plugin may not work always out of the box, but we have always got it running sooner or later.
Please tell me more about your installation. Does the webserver process have the rights to read the static page files? Which URL is marked with the error message you have cited - the www.yourmoodle.com/local/static_pages/view.php?... URL or the www.yourmoodle.com/static/.... URL? Did you put any rewrite rules into your webserver configuration?
Alex
the plugin issue this message:
"The Document Should Be available at the Following URL, but actually in the browser will not be Able to download and view it (Perhaps there is something wrong with your webserver configuration - see the README file for details):"
also with the option "Force Apache mod_rewrite"
thanks
Carlo
thanks for your suggestion, it's included in the 2.6 version of the plugin which was just published.
Alex
Thanks for you work on this useful plugin. Can I make one suggestion that you include the following in the view.php file after setting the global $page:
//hack to hide static pages from guests
if ($CFG->forcelogin) {
require_login();
}
This will mean that if the site has "force users to login" set then the static pages will be behind the login, rather than accessible to anyone.
Thanks
Toby
after reading your problem explanation I am pretty sure that your "page not found" error has nothing to do with our local_staticpage plugin. Your problem seems to be much earlier in the installation process of Moodle.
Please ask your question in "Installation help" forum on https://moodle.org/mod/forum/view.php?id=28.