cashmusic / platform

A free and open platform giving all musicians access to tools that let them manage, promote, and sell their music online.
https://cashmusic.org
Other
1.32k stars 266 forks source link

ErrorException: in_array() expects parameter 2 to be array, boolean given #1326

Open paperscissors opened 5 years ago

paperscissors commented 5 years ago

https://sentry.io/cash-music/cash-platform/issues/829223157/?referrer=github_plugin

ErrorException: in_array() expects parameter 2 to be array, boolean given
  File "/var/www/cash_platform/framework/elements/Subscription/Subscription.php", line 48, in handleError
    if (in_array($plan_id, $this->element_data['plans']) && $authenticated) {
  File "/var/www/cash_platform/vendor/sentry/sentry/lib/Raven/ErrorHandler.php", line 0, in in_array
    Raven_ErrorHandler->handleError
  File "/var/www/cash_platform/framework/elements/Subscription/Subscription.php", line 48, in getData
    if (in_array($plan_id, $this->element_data['plans']) && $authenticated) {
  File "/var/www/cash_platform/framework/classes/core/ElementBase.php", line 149, in getMarkup
    $this->getData(); // call getData() first as it not only sets data but the correct template
  File "/var/www/cash_platform/framework/classes/plants/Element/ElementPlant.php", line 503, in getElementMarkup
    $markup = $element_object->getMarkup();
...
(7 additional frame(s) were not displayed)