Title: Trying to Access Array Offset
Last modified: April 5, 2022

---

# Trying to Access Array Offset

 *  Resolved [bobjgarrett](https://wordpress.org/support/users/bobjgarrett/)
 * (@bobjgarrett)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/)
 * I am repeatedly getting a series of PHP notices:
 *     ```
       2022-04-05 04:57:17	PHP Notice: Trying to access array offset on value of type bool in C:\Inetpub\vhosts\mysite.com\httpdocs\wp-content\plugins\user-submitted-posts\library\core-functions.php on line 84
       2022-04-05 04:57:18	PHP Notice: Trying to access array offset on value of type bool in C:\Inetpub\vhosts\mysite.com\httpdocs\wp-content\plugins\user-submitted-posts\library\core-functions.php on line 85
       2022-04-05 04:57:18	PHP Notice: Trying to access array offset on value of type bool in C:\Inetpub\vhosts\mysite.com\httpdocs\wp-content\plugins\user-submitted-posts\library\core-functions.php on line 86
       2022-04-05 04:57:18	PHP Notice: Trying to access array offset on value of type bool in C:\Inetpub\vhosts\mysite.com\httpdocs\wp-content\plugins\user-submitted-posts\library\core-functions.php on line 87
       ```
   
 * I am finding in the log that the file being access is mysite.com/category/committee/
   feed/
 * Which if I view turns out to be an XML file.
 * Any ideas why this is happening and how to fix it?
    Thanks

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15527756)
 * Glad to help. The plugin does not access any non-plugin files, so the XML file
   request probably is due to some other plugin (or maybe theme).
 * The notices reference code that handles the plugin setting “Image Markup”. What
   do you have for that setting?
 *  Thread Starter [bobjgarrett](https://wordpress.org/support/users/bobjgarrett/)
 * (@bobjgarrett)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15528034)
 * Image Markup is
    `<a href="%%full%%"><img src="%%thumb%%" width="%%width%%" height
   ="%%height%%" alt="%%title%%" /></a>` I don’t recall setting this(!) so I assume
   the default?
 * The link mysite.com/category/committee/feed/ does relate though to the categories
   established for user submitted posts and mysite.com/category/committee/ actually
   shows the threads from one category. The feed seems to suggest something being
   sent by RSS which assume is not your plugin then but maybe is taking data from
   the plugin?
    -  This reply was modified 4 years, 2 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [bobjgarrett](https://wordpress.org/support/users/bobjgarrett/)
 * (@bobjgarrett)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15528043)
 * My previous posts reduced the Image Markup, should be:
    `<a href="%%full%%"><
   img src="%%thumb%%" width="%%width%%" height="%%height%%" alt="%%title%%" style
   ="display:inline-block" /></a>`
 *  Thread Starter [bobjgarrett](https://wordpress.org/support/users/bobjgarrett/)
 * (@bobjgarrett)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15528129)
 * Looking at this in more detail it is only one category of user submitted posts
   which is being shared via RSS. Any idea why that might be?
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15529542)
 * No idea why categories would be involved here. Normally the plugin submits posts
   that may specify which category, tags, etc. From there — once the post is submitted—
   everything is handled by WordPress. With USP, submitted posts are treated just
   like regular WP posts. So that means they will be displayed exactly as determined
   by your theme template (and any relevant plugins).
 * For the “Image Markup” setting and PHP notice, try resetting the plugin options
   back to the defaults and try again; the issue should not happen with the default
   settings.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15541893)
 * Hi [@bobjgarrett](https://wordpress.org/support/users/bobjgarrett/), just wanted
   to follow up with this. It’s been awhile with no reply, so I hope the issue is
   resolved? Or if there is anything I can do to help, please let me know. Thank
   you.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15568675)
 * Hey [@bobjgarrett](https://wordpress.org/support/users/bobjgarrett/), I hope 
   you got this sorted. It’s been awhile with no reply so gonna go ahead and mark
   this thread as resolved to help keep the forum organized. Feel free to post again
   with any further questions or feedback, Thank you.

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

The topic ‘Trying to Access Array Offset’ is closed to new replies.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/trying-to-access-array-offset-2/#post-15568675)
 * Status: resolved