Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

Here is an error I have received when I include some java script 8 months 2 weeks ago #8947

  • teacherjonny
  • teacherjonny's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 41
  • Thank you received: 0
First: The time out error has nothing to do with time spent. It only occurs when xerte finds an error in my code. Here is an example of a 403 (forbidden) code I received. Can you suggest why I got this "upload.php " error? Thanks
Request URL:
essentialhebrew.com/xerte/editor/upload.php
Request Method:
POST
Status Code:
403 Forbidden
Remote Address:
45.60.98.203:443
Referrer Policy:
strict-origin-when-cross-origin
Cache-Control:
no-cache
Content-Length:
760
Content-Type:
text/html
X-Iinfo:
5-28316515-0 NNNN RT(1709956027201 186954) q(0 0 -1 -1) r(0 -1) B15(1,402,42) U6
X-Incap-Sess-Cookie-Hdr:
pKluWivSi2J1WDGIwn5eB3bc62UAAAAADFhjO+TAU2gQY/xU4TPnIg==
:authority:
essentialhebrew.com
:method:
POST
:path:
/xerte/editor/upload.php
:scheme:
https
Accept:
application/json, text/javascript, */*; q=0.01
Accept-Encoding:
gzip, deflate, br, zstd
Accept-Language:
en-US,en;q=0.9
Content-Length:
10888
Content-Type:
application/x-www-form-urlencoded; charset=UTF-8
Cookie:
visid_incap_3039091=KJ7n8ZFDSvCEVOv4ft8nMIQzcmUAAAAAQUIPAAAAAADSmIcTZj1NqiYWOfC2paUl; nlbi_3039091=0pjeHv/MnVg2UfTnb1274gAAAADo2DMLDIj4OK1N3M0D61vo; incap_ses_531_3039091=RcShVoHrggZ1WDGIwn5eB6LZ62UAAAAADJxWpkkt+4s4/zjbqlT5+Q==; PHPSESSID=ddgd3cf8e5ch8qef8oofounnh24i5ek4
Origin:
essentialhebrew.com
Referer:
essentialhebrew.com/xerte/edithtml.php?template_id=6
Sec-Ch-Ua:
"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"Windows"
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-origin
User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Please Inloggen or Create an account to join the conversation.

Here is an error I have received when I include some java script 8 months 1 week ago #8950

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
If I press the link, I get the expected error message:

Session is invalid or expired

So, its not a configuration error on the webserver side. I don't know and have never seen a 403 error because of an error in your javascript that you put in your Xerte object.

Do you have an example of a piece of javascript that causes this?
The following user(s) said Thank You: teacherjonny

Please Inloggen or Create an account to join the conversation.

Here is an error I have received when I include some java script 8 months 1 week ago #8951

  • teacherjonny
  • teacherjonny's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 41
  • Thank you received: 0
this code will produce a time out error:
var slider = document.getElementById("myRange");
var outputRate = document.getElementById("playbackSlider");
outputRate.innerHTML = slider.value;

slider.oninput = function() {
var x = document.getElementById("audio" + currentAudioPlaying);

// var temp = x.playbackRate;
x.playbackRate = (this.value / 100);
if (x.playbackRate < .75) {
x.playbackRate = .75;
}
outputRate.innerHTML = this.value;
temp = this.value;
}


var temp= slider.value

Please Inloggen or Create an account to join the conversation.

Here is an error I have received when I include some java script 8 months 1 week ago #8952

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
This (kond of) just works for me.

I created a new project, added a text page, and added your script in the script tag of the Learning object itself (so not the text page.

I can save the project without a problem.

Of course the project does not work, because it does not find a slider and other things.
The following user(s) said Thank You: teacherjonny

Please Inloggen or Create an account to join the conversation.

Here is an error I have received when I include some java script 8 months 1 week ago #8953

  • teacherjonny
  • teacherjonny's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 41
  • Thank you received: 0
JQMIGRATE: Logging is active
jquery-migrate-1.2.1.js:3 JQMIGRATE: jQuery.browser is deprecated
migrateWarn @ jquery-migrate-1.2.1.js:3
jquery-migrate-1.2.1.js:3 console.trace
migrateWarn @ jquery-migrate-1.2.1.js:3
data.js?version=3.12_(git_v3.12.25-2-g8259c8555):8 USER-FILES/12-Ruth-Nottingham/preview.xml is loaded...
data.js?version=3.12_(git_v3.12.25-2-g8259c8555):6 All language definitions loaded...
data.js?version=3.12_(git_v3.12.25-2-g8259c8555):10 Start processing of USER-FILES/12-Ruth-Nottingham/preview.xml
layout.js?version=3.12_(git_v3.12.25-2-g8259c8555):1 Setting up layout...
/xerte/editor/upload.php:1


Failed to load resource: the server responded with a status of 403 ()

Please Inloggen or Create an account to join the conversation.

Here is an error I have received when I include some java script 8 months 1 week ago #8954

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Could you please change config.php and set $development to true on line 43?

$development = true;

Hopefully we get a clue in the apache error log on what is happening here, because I don't understand.

Please Inloggen or Create an account to join the conversation.

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

Search