I wanted to post something here about a problem I've recently
encountered, in case it might save someone else some time, as well as
see if anyone's come up with a clever solution.

I'd set up an inlinepush on a new server that had already been
successfully configured with APE. Everything seemed to be working
fine: other APE events were responding properly and the inline push
command was correctly configured and being called properly. When I
pasted the vardump of the inlinepush command into a browser, I got
back "OK" -- no errors. Everything was working flawlessly on my local
dev installation. Yet, on this production server it just seemed to
refuse to send the command to APE.

I chased my tail for an hour or so (checking and double-checking how
everything was being formed, etc) until I happened to check the error
log. Turns out the server on which I was trying to set up the process
had "allow_url_fopen" set to "Off" in the php.ini. As such, it was
throwing an error when I was using "file_get_contents" to send the APE
command, as, with that configuration, there was no wrapper for "http",
including a local URL (like "http://local.ape-project.org:6969/"; for
example). The only way I could get it to work was to change
"allow_url_fopen" to "On" and thus leave myself open to possible
injection and other xss.

Let that be a lesson to me to always check the error log first (duh, I
know) and to check the php.ini if the inlinepush commands that are
working find on your dev environment won't work on your production
server. While this is a decent temporary patch it's no workable
solution so I figured I'd toss it out here and see if anyone has any
thoughts on more permanent method for resolving it. Any and all
suggestions would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to