Git Product home page Git Product logo

Comments (5)

Frimkron avatar Frimkron commented on May 24, 2024

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.

TentativeConvert avatar TentativeConvert commented on May 24, 2024

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.

Frimkron avatar Frimkron commented on May 24, 2024

@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.

TentativeConvert avatar TentativeConvert commented on May 24, 2024

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.

TentativeConvert avatar TentativeConvert commented on May 24, 2024

Installation of the dom extension by our system administrator indeed solved the problem. Thanks a lot for your help!

from phpcalfeed.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.