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

E_NOTICE on contribution page widget tab #18189

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

demeritcowboy
Copy link
Contributor

Overview

Create a new contribution page and go to the widget tab.

Trying to get property 'id' of non-object in CRM_Contribute_Form_ContributionPage_Widget->preProcess() (line 43 of .../CRM/Contribute/Form/ContributionPage/Widget.php)

You don't see it though because it's hidden by ajax. You can see it in drupal watchdog.

Technical Details

It's because $this->_widget is null if it's a new contribution page or you've never configured the widget, but then it tries to set the widgetExternUrl using $this->_widget->id.

Comments

Has test

@civibot
Copy link

civibot bot commented Aug 18, 2020

(Standard links)

@civibot civibot bot added the master label Aug 18, 2020
@eileenmcnaughton eileenmcnaughton merged commit 476123c into civicrm:master Aug 18, 2020
@eileenmcnaughton
Copy link
Contributor

Thanks @demeritcowboy

@demeritcowboy
Copy link
Contributor Author

Thanks!

@demeritcowboy demeritcowboy deleted the widget-notice branch August 18, 2020 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants