Fatal Error on getitems()
-
This just started happening today where when I go to my Dashboard I get the following error instead of my stats:
Fatal error: Uncaught Error: Call to a member function getItems() on string in /home/customer/www/yoursite.com/public_html/wp-content/plugins/wp-analytify/inc/wpa-core-functions.php:444 Stack trace: #0 /home/customer/www/yoursite.com/public_html/wp-content/plugins/wp-analytify/inc/wpa-core-functions.php(519): WP_ANALYTIFY_FUNCTIONS::search_profile_info(‘80326391’, ‘accountId’) #1 /home/customer/www/yoursite.com/public_html/wp-content/plugins/wp-analytify/inc/analytics-dashboard.php(127): WP_ANALYTIFY_FUNCTIONS::get_ga_report_url(‘80326391’) #2 /home/customer/www/yoursite.com/public_html/wp-content/plugins/wp-analytify/wp-analytify.php(672): include_once(‘/home/customer/…’) #3 /home/customer/www/yoursite.com/public_html/wp-includes/class-wp-hook.php(288): WP_Analytify->pa_page_file_path(”) #4 /home/customer/www/yoursite.com/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #5 /home/customer/www/yoursite.com/public_html/wp-includes/plugin.php(478): in /home/customer/www/yoursite.com/public_html/wp-content/plugins/wp-analytify/inc/wpa-core-functions.php on line 444
Seems to be something involving this code:
foreach ( $accounts->getItems() as $account ) { foreach ( $account->getWebProperties() as $property ) { foreach ( $property->getProfiles() as $profile ) { // Get Property ID i.e UA Code if ( $profile->getId() === $id && $index === 'webPropertyId') { return $property->getId(); } // Get Property URL i.e analytify.io if ( $profile->getId() === $id && $index === 'websiteUrl') { return $property->getWebsiteUrl(); } // Get Profile view i.e All website data if ( $profile->getId() === $id && $index === 'name') { return $profile->getName(); } // Get Account Id . if ( $profile->getId() === $id && $index === 'accountId') { return $account->getId(); } // Get Internal Web Property Id. if ( $profile->getId() === $id && $index === 'internalWebPropertyId') { return $property->getInternalWebPropertyId(); } // Get Profile view i.e All website data if ( $profile->getId() === $id && $index === 'viewId' ) { return $profile->getId(); } } }
The page I need help with: [log in to see the link]
- The topic ‘Fatal Error on getitems()’ is closed to new replies.