Invalid argument supplied for foreach() in [..]\environment\request.php line 393 - Joomla! Forum - community, help and support


hi, everyone.

  first of all, done on great job in j! 1.5, seems well-built, solid framework. i've decided take risk of using nightly builds -hopefully- large community website, due online end of year.

what got following warning in front page (/templates/community/body.php, include()'d /templates/community/index.php). html skeleton of website slight if..endif blocks change skeleton depending on loaded component. i'm accessing juri instance, apart nothing more advanced used. other components in website don't warning appear.

it started appearing nightly build, in beginning of may. still appears in may 28th nightly build. googled error message , seems appear in numerous other joomla installations. anyway, here goes:

warning: invalid argument supplied foreach() in c:\web\root\joomla\libraries\joomla\environment\request.php on line 393


note: i'm not j! expert, i'm working without modifying core, using template overrides , custom modules , components.

don't know post debug information, injected debug_backtrace() printout right in beginning of set() method in request.php. here output:

code: select all

    [0] => array
        (
            [file] => c:\web\root\joomla\libraries\joomla\application\router.php
            [line] => 187
            [function] => set
            [class] => jrequest
            [object] => jrouter object
                (
                    [_mode] => 0
                    [_vars] => array
                        (
                        )

                    [_errors] => array
                        (
                        )
                )

            [type] => ->
            [args] => array
                (
                    [0] =>
                    [1] => get
                    [2] =>
                )
        )

    [1] => array
        (
            [file] => c:\web\root\joomla\libraries\joomla\application\application.php
            [line] => 121
            [function] => parse
            [class] => jrouter
            [object] => jrouter object
                (
                    [_mode] => 0
                    [_vars] => array
                        (
                        )

                    [_errors] => array
                        (
                        )
                )

            [type] => ->
            [args] => array
                (
                    [0] => http://localhost/joomla/
                )

        )

    [2] => array
        (
            [file] => c:\web\root\joomla\includes\application.php
            [line] => 85
            [function] => route
            [class] => japplication
            [object] => jsite object
                (
                    [_pathway] =>
                    [_clientid] => 0
                    [_router] => jrouter object
                        (
                            [_mode] => 0
                            [_vars] => array
                                (
                                )

                            [_errors] => array
                                (
                                )

                        )

                    [_messagequeue] => array
                        (
                        )

                    [_errors] => array
                        (
                        )

                    [requesttime] => 2007-05-29 15:04
                )

            [type] => ->
            [args] => array
                (
                )
        )

    [3] => array
        (
            [file] => c:\web\root\joomla\index.php
            [line] => 59
            [function] => route
            [class] => jsite
            [object] => jsite object
                (
                    [_pathway] =>
                    [_clientid] => 0
                    [_router] => jrouter object
                        (
                            [_mode] => 0
                            [_vars] => array
                                (
                                )

                            [_errors] => array
                                (
                                )
                        )

                    [_messagequeue] => array
                        (
                        )

                    [_errors] => array
                        (
                        )

                    [requesttime] => 2007-05-29 15:04
                )

            [type] => ->
            [args] => array
                (
                )
        )


any suggestions ? time in advance!

hmm hard problem based on info, else add ? example code trigger ?





Comments