Fails to include PHP file correctly on WAMP server

Home \ forums/topic \ Fails to include PHP file correctly on WAMP server

Support Home Page Forums Joomla Software Easy Flash Uploader Plugin Fails to include PHP file correctly on WAMP server

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #90
    paulct
    Participant

    I have an efu in my article (using the defaults)

    I can select my file, but when it tries to upload I get:

    Warning: require_once(C:wampwwwjoomlaincludesdefines.php) [function.require-once]: failed to open stream: No such file or directory in C:wampwwwjoomlapluginscontenteasyflashuploaderhelper.php on line 36

    Seems like its not specifying the include directly correctly. Thanks

    #1061
    Michael Gilkes
    Keymaster

    @paulct. Hmmm… interesting. Well, from what you describe here, it seems as though the slashes (‘/’), or maybe backslashes (”) since it’s on windows, that are inside of JPATH_BASE are being stripped away automatically when it is sent to the helper.php file via the POST variable. I can’t tell you what this is due to. But, maybe it could be some PHP or apache setting of your wamp server.

    As you can also look at the code yourself, if you understand PHP, you would notice that the code in the helper.php file doesn’t have any errors on or around line 36. So, unless we can do some debugging on a wamp server that exhibits the error you describe, I really can’t say much. Unfortunately, I don’t have access to a WAMP server.

    BTW, what version of PHP are you running?

    #1062
    paulct
    Participant

    Thanks. I am using PHP 5.3x

    I did look at the code, and when I put in an echo JPATH_BASE statement in helper.php, sure enough I was seeing no slashes. Must be some quirk of WAMP/Windows.

    I noticed in some other Joomla code that POST is not used to set JPATH. I am not a PHP whiz, so don’t really know why. See index.php in the joomla root as an example. Maybe there is a reason that type of code can’t be used in an extension.

    #1063
    Michael Gilkes
    Keymaster

    @paulct. Putting JPATH_BASE in the POST was deliberate. It is needed for the whole thing to work. The next thing I need is to be able to view the source code of the page with the uploader. I need to know the value JPATH_BASE in the uploader javascript source code. If you don’t know how to find it, you can send me a link to your uploader page in an email.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Fails to include PHP file correctly on WAMP server’ is closed to new replies.