Jump to content

Bootstrapping and command line php notice


maba
 Share

Recommended Posts

Hi,

I have a script that runs on crontab and update some fields.

The problem is that when it runs from shell I got php notices from some modules:

[28-Apr-2014 17:16:25 Europe/Rome] PHP Notice:  Undefined index: REQUEST_URI in /Users/maba/Workspace/src/aaa/site/modules/AdminHotKeys/AdminHotKeys.module on line 70
[28-Apr-2014 17:16:25 Europe/Rome] PHP Notice:  Undefined index: REQUEST_URI in /Users/maba/Workspace/src/aaa/site/modules/ChromePhpLogger/ChromePhpLogger.module on line 51

Ok, I can remove all warnings and notices but, is there a way to exclude or not load some modules when we include index.php?

Thanks,

Marco

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...