Warning about missing $_SERVER['REQUEST_URI'], while working from PHP CLI

85 views
Skip to first unread message

Alexander Obuhovich

unread,
Dec 27, 2010, 9:20:27 AM12/27/10
to In-Portal Bugs
I'm getting warning about missing  $_SERVER['REQUEST_URI'] variable, when In-Portal is executed from PHP CLI, since there are no $_SERVER at all in PHP CLI.

Warning isn't visible on the screen, since error reporting is turned off in In-Portal in this case. However this causes problems, when this  $_SERVER['REQUEST_URI'] is written into database in NOT NULL column resulting

ERROR 1048 (23000): Column 'PageUrl' cannot be null error (this is in CurlLog table, see task: http://tracker.in-portal.org/view.php?id=950


Ready for testing.
undefined_request_uri_when_in_cron.patch

Dmitry A.

unread,
Dec 27, 2010, 2:36:39 PM12/27/10
to in-port...@googlegroups.com
Hi Alex,


I had the same issue before.

Patch tested good!

Thanks,
Reply all
Reply to author
Forward
0 new messages