WordPress.org

Forums

watermark
[resolved] Undefined Offset (6 posts)

  1. Christine
    Member
    Posted 1 year ago #

    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/

  2. alexis blondin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Christine
    Member
    Posted 1 year ago #

    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?

  4. alexis blondin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. Christine
    Member
    Posted 1 year ago #

    I will have a go later today :-)

  6. Christine
    Member
    Posted 1 year ago #

    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 :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • watermark
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags