Title: Undefined Index
Last modified: August 22, 2016

---

# Undefined Index

 *  Resolved [Kenton](https://wordpress.org/support/users/kbsmith/)
 * (@kbsmith)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/undefined-index-32/)
 * Lastest Cron job results with the following:
 * All-in-One Event Calendar: Undefined index: SCRIPT_NAME @ /home/servername/public_html/
   wp-content/plugins/all-in-one-event-calendar/app/controller/front.php:428 #8
 * Anyone else seeing this or something similar?
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Kenton](https://wordpress.org/support/users/kbsmith/)
 * (@kbsmith)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/undefined-index-32/#post-5216373)
 * Posted fix from another user on the Time.ly discussion forum:
 * July 24, 2014 at 9:40 am #126922 REPLY (linux4me2)
 * I did not hear back from Time.ly about this, so I did a little experimenting 
   and found a workaround for anyone who is experiencing the same issue.
 * Find the following line on about line 405 (line 415 for me) of /wp-content/plugins/
   all-in-one-event-calendar/app/controller/front.php:
 *     ```
       if ( basename( $_SERVER['SCRIPT_NAME'] ) === 'post.php' ) {
       ```
   
 * and replace it with this:
 *     ```
       //if ( basename( $_SERVER['SCRIPT_NAME'] ) === 'post.php' ) {
       if ( basename( $_SERVER['PHP_SELF'] ) === 'post.php' ) {
       ```
   
 * Using PHP_SELF instead of SCRIPT_NAME has eliminated the error on my server, 
   and switching back to SCRIPT_NAME I get the error filling up my error_log again,
   even though I have confirmed that SCRIPT_NAME is indeed available in my PHP installation.

Viewing 1 replies (of 1 total)

The topic ‘Undefined Index’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Kenton](https://wordpress.org/support/users/kbsmith/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/undefined-index-32/#post-5216373)
 * Status: resolved