Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notices when displaying new oik-plugins post for envira-gallery-lite #21

Closed
bobbingwide opened this issue Jul 17, 2019 · 4 comments
Closed
Assignees
Labels

Comments

@bobbingwide
Copy link
Owner

Notice: Trying to get property 'data' of non-object in C:\apache\htdocs\wordpress\wp-content\plugins\oik-plugins\feed\oik-plugins-feed.php on line 605

Notice: Trying to get property 'user_url' of non-object in C:\apache\htdocs\wordpress\wp-content\plugins\oik-plugins\feed\oik-plugins-feed.php on line 605

Backtrace
0. bw_lazy_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\libs\bwtrace.php:108 0

  1. bw_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\bwtrace-actions.php:285 0
  2. bw_trace_error_handler(8,Trying to get property 'data' of non-object,C:\apache\htdocs\wordpress\wp-content\plugins\oik-plugins\feed\oik-plugins-feed.php,605,array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-plugins\feed\oik-plugins-feed.php:605 5
  3. bw_get_userdata(0,user_url,http://www.bobbingwidewebdesign.com/about/herb/) C:\apache\htdocs\wordpress\wp-content\plugins\oik-plugins\feed\oik-plugins-feed.php:625 3
  4. bw_get_author_name(object) C:\apache\htdocs\wordpress\wp-content\plugins\oik-bob-bing-wide\shortcodes\oik-plug.php:945 1
  5. bw_get_plugin_info_as_xml(envira-gallery-lite,object) C:\apache\htdocs\wordpress\wp-content\plugins\oik-bob-bing-wide\shortcodes\oik-plug.php:902 2
  6. bw_get_plugin_info(envira-gallery-lite,) C:\apache\htdocs\wordpress\wp-content\plugins\oik-bob-bing-wide\shortcodes\oik-plug.php:55 2
  7. bw_plug(array,,bw_plug) C:\apache\htdocs\wordpress\wp-content\plugins\oik\oik-add-shortcodes.php:207 3
  8. bw_shortcode_event(array,,bw_plug) C:\apache\htdocs\wp-a2z\wp-includes\shortcodes.php:325 3
  9. do_shortcode_tag(array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-css\includes\shortcodes-earlier.php:100 1
  10. do_shortcode_tag_earlier(array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-css\includes\shortcodes-earlier.php:0 1
  11. preg_replace_callback(/[([?)(wp_caption|caption|gallery|playlist|audio|video|embed|wpseo_breadcrumb|post_date|post_time|post_modified_date|post_modified_time|post_author|post_author_link|post_author_posts_link|post_comments|post_tags|post_categories|post_terms|post_edit|footer_copyright|footer_childtheme_link|footer_genesis_link|footer_studiopress_link|footer_wordpress_link|footer_site_title|footer_home_link|footer_loginout|envira-gallery|bw_field|bw_fields|bw_new|bw_related|bw_group|oikp_download|oikth_download|bw_terms|oik|loik|OIK|lbw|bw_page|bw_post|bw_plug|bp|lwp|lbp|wpms|lwpms|drupal|ldrupal|artisteer|lartisteer|wp|bw_csv|bw_search|bw_dash|bw_action|bw_rpt|bw_graphviz|bw_crumbs|bw_option|bw_text|github|bw_archive|cloned|clone|bw_css|bw_geshi|bw_background|bw_autop|bw_blog|bw_blogs|bw_rwd|bw_codes|bw_code|bw_wtf|bw_directions|bw|bw_address|bw_mailto|bw_email|bw_geo|bw_telephone|bw_fax|bw_mobile|bw_skype|bw_tel|bw_mob|bw_wpadmin|bw_domain|bw_show_googlemap|bw_contact|bw_company|bw_business|bw_formal|bw_slogan|bw_alt_slogan|bw_admin|bw_twitter|bw_facebook|bw_linkedin|bw_youtube|bw_flickr|bw_picasa|bw_googleplus|bw_google_plus|bw_google-plus|bw_google|bw_instagram|bw_pinterest|bw_follow_me|clear|bw_logo|bw_qrcode|div|sdiv|ediv|sediv|bw_emergency|bw_abbr|bw_acronym|bw_blockquote|bw_cite|bw_copyright|stag|etag|bw_tree|bw_posts|bw_pages|bw_list|bw_bookmarks|bw_attachments|bw_pdf|bw_images|bw_portfolio|bw_thumbs|bw_button|bw_contact_button|bw_block|bw_eblock|paypal|ngslideshow|gpslides|bw_power|bw_editcss|bw_table|bw_parent|bw_iframe|bw_jq|bw_accordion|bw_tabs|bw_login|bw_loginout|bw_register|bw_link|bw_contact_form|bw_countdown|bw_cycle|bw_count|bw_navi|bw_api|api|apis|hooks|codes|blocks|file|files|classes|hook|md|parsed_source|contents|guts|content|bwtrace)(?![\w-])([^\]\/](?:/(?!])[^\]\/])?)(?:(/)]|](?:([^\[]+(?:[(?!/\2])[^\[]+)+)[/\2])?)(]?)/s,do_shortcode_tag_earlier,

Envira Gallery is the best responsive WordPress gallery plugin. This is the Lite version.

@bobbingwide bobbingwide self-assigned this Jul 17, 2019
@bobbingwide
Copy link
Owner Author

Same thing happened when edd-blocks was first created.

Workaround

Continue as if nothing happened. It'll resolve itself on the next display.

@bobbingwide
Copy link
Owner Author

The logic is trying to find the name for a post author value of 0.
Two things to fix.

  1. Use a post_author of 1 in oik-blocker.php. It's only expected to be run on WP-a2z sites
  2. Check that $userdata is set before accessing $userdata->data

@bobbingwide
Copy link
Owner Author

While we're at it. Change the default user_url from http://www.bobbingwidewebdesign.com/about/herb/
to https://www.bobbingwide.com/about-bobbing-wide

... for when the web design site gets merged into bobbingwide.com

bobbingwide added a commit that referenced this issue Nov 25, 2019
@bobbingwide
Copy link
Owner Author

v1.21.0 has been released. Unable to reproduce the problem on bobbingwidewebdesign.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant