Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.
  • Page:
  • 1

TOPIC:

errors when playing/creating LO 8 years 7 months ago #3610

  • r.j.
  • r.j.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
After updating i am running into a wall..

Even with clean install and the same database settings i am recieving errors:

On creating a new LO
Fatal error: Call to undefined function dont_show_template() in /var/www/html/moodle/xerte/edithtml.php on line 59

does anyone have any idea.....

Please Log in or Create an account to join the conversation.

Last edit: by r.j..

errors when playing/creating LO 8 years 7 months ago #3611

  • r.j.
  • r.j.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
eh.....it has a // in the paths.....this is weird....
this probably is the reason it is not working

Does anyone know where the paths are declared?

It still does not explain why i cannot create new LOs


EDIT:
The double slashes are normally removed by the strip slashes version;
see below for answer

Please Log in or Create an account to join the conversation.

Last edit: by r.j..

errors when playing/creating LO 8 years 7 months ago #3612

  • r.j.
  • r.j.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
It has something to do with file permissions,

LO's are created weirdly when there are not enough file permissions in place.
those weirdly created LO's dont have all xmls created....


The standard 755/644 combo clearly does not cut it

Edit:

On publishing a new LO...
error;
appache logs show:
[Fri Apr 01 13:35:01.545724 2016] [:error] [pid 15725] [client 10.0.0.167:46674] PHP Notice:  Use of undefined constant get_magic_quotes_gpc - assumed 'get_magic_quotes_gpc' in /var/www/html/moodle/xerte/editor/upload.php on line 42, referer: https://10.0.0.183/xerte/edithtml.php?template_id=61
[Fri Apr 01 13:35:03.831684 2016] [:error] [pid 15725] [client 10.0.0.167:46674] PHP Notice:  Use of undefined constant get_magic_quotes_gpc - assumed 'get_magic_quotes_gpc' in /var/www/html/moodle/xerte/editor/upload.php on line 4

Edit 2:
Turn off ON magic qoutes
Edit 3:
upgrade to new php (5.6)
Edit 4:
Still have the error, which is stupid, since 'get magic quotes" is scrapped in my version

Edit 5:
scrapped this out of line 42 of editor.php
function_exists(get_magic_quotes_gpc) &&
leave the rest. It will work again.

Please Log in or Create an account to join the conversation.

Last edit: by r.j..

errors when playing/creating LO 8 years 7 months ago #3615

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
I fixed the obvious typo:
function_exists('get_magic_quotes_gpc')

Code now looks like:
if (function_exists('get_magic_quotes_gpc'))
{
    if (get_magic_quotes_gpc())
    {
        $lo_data=stripslashes($_POST["lo_data"]);
    }
}

Please Log in or Create an account to join the conversation.

errors when playing/creating LO 8 years 7 months ago #3616

  • r.j.
  • r.j.'s Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
Nice Tom, Thanks!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.049 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search