Comments (5)
Hi @TentativeConvert. The calendar.php
file needs to be in the same directory as the other files. Off the top of my head I'm not sure why that would result in a 406 response, but that's the first thing I would try.
Http 406 means "Not Acceptable" which indicates that the script has tried to determine what output format to respond with, based on the "Accept" header your browser sent in the request, and the formats it is capable of producing with the libraries available to your php installation, but wasn't able to find a match.
Normally the browser would ask for HTML format, so I'm thinking maybe one of the required libraries for HTML output is missing (and I forgot to mention it in the readme). You can find detailed information about your php environment by putting a call to the phpinfo
function in your test script. In the list of installed extensions you'll want to check that libxml
and dom
are there. Calfeed uses an XML Dom tree to generate HTML.
If that still doesn't resolve the problem, it could be a bug in my script. To help diagnose it further, If be interested to know what the HTTP_ACCEPT
variable was set to in phpinfo - in other words what Accept header the browser sent, which possibly wasn't parsed correctly.
from phpcalfeed.
Thanks a lot for the detailed response! The file calendar.php
is indeed in the same folder as all the other files I downloaded, and in the same folder as the calendar file. I added the phpinfo
function to my test script as you suggested. If I understand correctly, the following lines from the output of that script answer two out of three of your questions positively:
Apache Environment
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
libXML
support | active
libXML Compiled Version | 2.9.3
libXML Loaded Version | 20903
libXML streams | enabled
However, I can't find a subsection titled dom, and the only place where "dom" appears is in the section PHP Credits. Does this mean that there is a module called "dom" missing from the installation, and that I need to to ask my system administrator to add it?
from phpcalfeed.
@TentativeConvert Unfortunately yes, I think so. The dom
extension is usually installed by default, but apparently it's possible to disable it when compiling and installing PHP, so your sys admin might have removed it for some reason. Let me know whether that solves it 🙂
from phpcalfeed.
OK, thanks a lot! Will try this and get back to you. This may take a while; feel free to close this issue in the meantime.
from phpcalfeed.
Installation of the dom
extension by our system administrator indeed solved the problem. Thanks a lot for your help!
from phpcalfeed.
Related Issues (12)
- Bad Output path HOT 2
- facebook integration HOT 2
- Facebook integration
- Add Location field to events
- Add alert time and default calendar update frequency
- Works local, but not on EC2 HOT 2
- iCal feed not syncing on iOS 13.4
- CSV: Required column 'name' not found in header HOT 2
- JSON: Invalid time format - expected "hh:mm" or similar
- Where to adjust for timezones? HOT 1
- Events should remain in calendar output until their end time has passed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpcalfeed.