Title: Undefined Offset
Last modified: August 21, 2016

---

# Undefined Offset

 *  Resolved [Squirrel](https://wordpress.org/support/users/mossyoak/)
 * (@mossyoak)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-7/)
 * Hi there
 * Just been testing this plugin with wp debug on and I get the following error 
   on this plugins settings page- (just to let you know).
 * Notice: Undefined offset: 1 in… plugins/alti-watermark/admin-page.php on line
   45
 * The plugin works great though thanks.
 * [https://wordpress.org/plugins/alti-watermark/](https://wordpress.org/plugins/alti-watermark/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Protect Uploads](https://wordpress.org/support/users/alticreation/)
 * (@alticreation)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-7/#post-4810367)
 * Hi Christine,
 * Thanks for the report, I will fix it as soon as possible !
    Seems like you have
   a problem reading the htaccess file, do you have any clue why ? Is it a problem
   of access on your server ?
 * Thanks, hope the plugin will be helpfull.
 *  Thread Starter [Squirrel](https://wordpress.org/support/users/mossyoak/)
 * (@mossyoak)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-7/#post-4810410)
 * I think you are right- the error is on my end. I remembered I had put a HTACCESS
   in the uploads folder with the following code restricting certain types of uploads:
 *     ```
       # secure uploads directory
       <Files ~ ".*\..*">
       	Order Allow,Deny
       	Deny from all
       </Files>
       <FilesMatch "\.(jpg|jpeg|jpe|gif|png|pdf|css|mov|mp4|mp3|mpeg|wmv)$">
       	Order Deny,Allow
       	Allow from all
       </FilesMatch>
       ```
   
 * After removing this the error went away.
    I must be restricting a type of file
   your plugin needs in the uploads maybe?
 *  Plugin Author [Protect Uploads](https://wordpress.org/support/users/alticreation/)
 * (@alticreation)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-7/#post-4810595)
 * Christine,
 * I don’t think you have to modify your htaccess, but you should add the content
   of the htaccess generated by the plugin below the lines of your previous htaccess.
   Merge them together, and it should work properly.
 * Let me know please !
    Thanks.
 *  Thread Starter [Squirrel](https://wordpress.org/support/users/mossyoak/)
 * (@mossyoak)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/undefined-offset-7/#post-4810617)
 * I will have a go later today 🙂
 *  Thread Starter [Squirrel](https://wordpress.org/support/users/mossyoak/)
 * (@mossyoak)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/undefined-offset-7/#post-4810654)
 * I did what you suggested (sorry a bit later than I said) and I’ve seen no error
   since. Thanks for troubleshooting this for me 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/alti-watermark_72d4f1.svg)
 * [watermark](https://wordpress.org/plugins/alti-watermark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alti-watermark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alti-watermark/)
 * [Active Topics](https://wordpress.org/support/plugin/alti-watermark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alti-watermark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alti-watermark/reviews/)

## Tags

 * [watermark](https://wordpress.org/support/topic-tag/watermark/)

 * 5 replies
 * 2 participants
 * Last reply from: [Squirrel](https://wordpress.org/support/users/mossyoak/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/undefined-offset-7/#post-4810654)
 * Status: resolved