Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.

errors when playing/creating LO

  • r.j.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago - 10 years 3 months ago #3610 by r.j.
errors when playing/creating LO was created by r.j.
After updating i am running into a wall..

Even with clean install and the same database settings i am recieving errors:
[strike]
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.....[/strike]
Last edit: 10 years 3 months ago by r.j..

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

  • r.j.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago - 10 years 3 months ago #3611 by r.j.
Replied by r.j. on topic errors when playing/creating LO
eh.....it has a // in the paths.....this is weird....
[strike]this probably is the reason it is not working[/strike][strike]

Does anyone know where the paths are declared?

It still does not explain why i cannot create new LOs[/strike]

EDIT:
The double slashes are normally removed by the strip slashes version;
see below for answer
Last edit: 10 years 3 months ago by r.j..

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

  • r.j.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago - 10 years 3 months ago #3612 by r.j.
Replied by r.j. on topic errors when playing/creating LO
[strike]It has something to do with file permissions,
[/strike]
LO's are created weirdly when there are not enough file permissions in place.
those weirdly created LO's dont have all xmls created....
[strike][strike]

The standard 755/644 combo clearly does not cut it
[/strike][/strike]
Edit:

On publishing a new LO...
error;
appache logs show:
Code:
[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:
[strike]Turn [strike]off[/strike] ON magic qoutes[/strike]
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
Code:
function_exists(get_magic_quotes_gpc) &&
leave the rest. It will work again.
Last edit: 10 years 3 months ago by r.j..

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

More
10 years 3 months ago #3615 by tom
Replied by tom on topic errors when playing/creating LO
I fixed the obvious typo:
Code:
function_exists('get_magic_quotes_gpc')

Code now looks like:
Code:
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.

  • r.j.
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 3 months ago #3616 by r.j.
Replied by r.j. on topic errors when playing/creating LO
Nice Tom, Thanks!

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

Time to create page: 0.132 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo