Title: Fatal Error on getitems()
Last modified: December 28, 2019

---

# Fatal Error on getitems()

 *  Resolved [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-on-getitems%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Asad Shahbaz](https://wordpress.org/support/users/artisticasad/)
 * (@artisticasad)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-on-getitems/#post-12278484)
 * Hi,
 * Sorry for this inconvenience, Please re-authenticate to your Google Analytics
   account.
 * To re-authenticate:
    In your dashboard go to Analytify > Settings > Authentication.
   Here press “Logout” and then after Authenticate again.
 * Let me know if the issue still persists after re-authenticate.

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error on getitems()’ is closed to new replies.

 * ![](https://ps.w.org/wp-analytify/assets/icon-256x256.png?rev=2901093)
 * [Analytify - Google Analytics Dashboard For WordPress (GA4 analytics tracking)](https://wordpress.org/plugins/wp-analytify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-analytify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-analytify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-analytify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-analytify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-analytify/reviews/)

## Tags

 * [analytify](https://wordpress.org/support/topic-tag/analytify/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Asad Shahbaz](https://wordpress.org/support/users/artisticasad/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-on-getitems/#post-12278484)
 * Status: resolved