• Resolved bobjgarrett

    (@bobjgarrett)


    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

    (@specialk)

    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

    (@bobjgarrett)

    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?

    Thread Starter bobjgarrett

    (@bobjgarrett)

    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

    (@bobjgarrett)

    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

    (@specialk)

    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

    (@specialk)

    Hi @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

    (@specialk)

    Hey @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.