Undefined index: SCRIPT_NAME in cron job

4 posts by 3 authors in: Forums > CMS Builder
Last Post: May 31, 2012   (RSS)

Re: [linkandco] Undefined index: SCRIPT_NAME in cron job

By gkornbluth - May 23, 2012

Hi Marcus,

I had a similar problem when implementing an automatic renewal notice for members that was activated by A cron job (all documented in a new recipe in my CMSB Cookbook http://www.thecmsbcookbook.com), and Dave Edis suggested :

For the Undefined notices, a workaround might be to edit /lib/init.php and add this line just above "// define constants"

error_reporting(E_ALL & ~E_NOTICE); // show all errors but notices

// define constants


He also suggested that I add a -q at the end of the PHP interpreter call to suppress other unwanted messages.

Hope that helps,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [linkandco] Undefined index: SCRIPT_NAME in cron job

By ross - May 23, 2012

Hi Marcus

Thanks for posting! Looks like Jerry beat us to the reply :). Have a look at his post and let us know how you are making out.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Undefined index: SCRIPT_NAME in cron job

By linkandco - May 31, 2012

Hi Jerry and Ross,

Thanks to you both for getting back to me on this one so quickly. We did as Jerry suggested and that has certainly done the trick.

Best regards,
Marcus