Problem with Location-Module

Mike's Avatar


20 Aug, 2012 12:40 PM


the Location-Moule works not for me.
When i set "define('SPOON_DEBUG', true);" all is fine, but when i set "define('SPOON_DEBUG', false);" in the Frontend is no Google-Map and this Error-Message:
"Warning: filemtime() [function.filemtime]: stat failed for /var/www/vhosts/ in /var/www/vhosts/ on line 536"

Any Idea?

  1. Support Staff 1 Posted by tijs on 21 Aug, 2012 06:12 AM

    tijs's Avatar

    Seems like a server-issue. The filemtime can't use stat. Check if the permisions for the files

  2. 2 Posted by Mike on 21 Aug, 2012 07:08 AM

    Mike's Avatar


    which files with wich permissions? The folder "cache" (and all files in it) have 777...

  3. 3 Posted by jonas.wallecan on 05 Oct, 2012 06:29 AM

    jonas.wallecan's Avatar

    I'm having exactly the same issue/ problem.. any updates yet? :)

  4. 4 Posted by Forker on 05 Oct, 2012 09:17 AM

    Forker's Avatar

    "Seems like a server-issue. The filemtime can't use stat. Check if the permisions for the files"

    Permissions are not the issue. If you look carefully at what it's trying to stat, you'll see it's the server root concatenated with the url for google maps. This can't be right.

  5. Support Staff 5 Posted by dieter on 08 Oct, 2012 06:19 AM

    dieter's Avatar
  6. dieter closed this discussion on 08 Oct, 2012 06:19 AM.

  7. jonas.wallecan re-opened this discussion on 08 Oct, 2012 06:28 AM

  8. 6 Posted by jonas.wallecan on 08 Oct, 2012 06:28 AM

    jonas.wallecan's Avatar

    thanks but that change has already been made.. doesn't make sense,except when i change the "spoon debug" to true. but then everyone who bumps into an error will get a big ass message instead of a nice "im sorry bla bla" error..

  9. 7 Posted by Mike on 08 Oct, 2012 06:30 AM

    Mike's Avatar


    it works not for me - no Google-Map, but now (new): no Error-Message.

  10. 8 Posted by jonas.wallecan on 08 Oct, 2012 06:51 AM

    jonas.wallecan's Avatar

    update, now i get another error message no apache log or huge error,but the maps isn't displayin' and now on top of the window there is " Warning: filemtime(): stat failed for /var/www in /var/www/frontend/core/engine/header.php on line 536 "

  11. Support Staff 9 Posted by tijs on 08 Oct, 2012 06:52 AM

    tijs's Avatar

    Did you apply the changes? And did you clear the compiled templates?

  12. 10 Posted by Forker on 08 Oct, 2012 07:21 AM

    Forker's Avatar

    I don't get any good result yet either.

    Can someone please address the issue of why the server root appears to get prepended to the google maps url? The change from Lowie doesn't appear to have any impact on this...
    See this line (536) from ../frontend/core/engine/header.php:

        if(!SpoonFile::exists($finalPath) || filemtime(PATH_WWW . $file) > filemtime($finalPath))

    Kind regards,

  13. 11 Posted by jonas.wallecan on 08 Oct, 2012 08:59 AM

    jonas.wallecan's Avatar

    @Tijs : after clearing the compiled template i got rid of the error on top of the window, but still no Map visible, like Forker posted, it has something to do with what he's mentioning... but can't get it fixed.. Anyone else? :-)

  14. Support Staff 12 Posted by tijs on 11 Nov, 2012 12:04 PM

    tijs's Avatar

    If the server-root is still prepended you didn't apply the changes.

  15. 13 Posted by jeroendesloover... on 28 Nov, 2012 02:05 PM

    jeroendesloovere's Avatar

    Check this post for the correct solution!

    This discussion can be closed.
    Bugfix #336 should be integraded in Fork CMS soon...

  16. tijs closed this discussion on 28 Dec, 2012 07:05 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac