When trying to access "admin/settings/activity/flag_friend" I get an error:

Fatal error: Cannot use object of type stdClass as array in /sites/all/modules/activity/activity.module on line 303

I'm using core v6.14 with activity v6.x-1.x-dev and flag_friend v6.x-1.0-rc1.

I got a similar error message with an earlier version of activity.

Comments

boblangdon’s picture

This is still a problem.

NickWebman’s picture

Same problem here. Out of nowhere too, it was working fine. Weird.

boblangdon’s picture

BUMP

boblangdon’s picture

Is anybody home? Been searching the archives and hoping for a response. Haven't been able to nail this bug down.

coyoterj’s picture

Hi,

Same problem, but when I go to link "User activity relations settings page" of the page "/admin/settings/activity".

Error: Fatal error: Cannot use object of type stdClass as array in /sites/all/modules/activity/activity.module on line 303

Drupal: 6.14
Activity: 6.x-1.2

Best Regards!

iwkse’s picture

Same here:
Drupal 6.14
Module 6.x-1.2

boblangdon’s picture

Thanks iwkse,

I tried your suggestion

That makes the error go away.
Unfortunately, it also makes all my activity configuration options go away -- for all activity types, including...

  • Flag activity settings page
  • Node activity settings page
  • User activity settings page
  • User relationships activity settings page
  • Fla activity settings page
  • Faceboo activity settings page

Now I'm taken to "/admin/settings/activity/flag_friend" where it says:

The configuration settings below determine how activity generated by the Fla module is recorded. Select which types of activity and which operations to record by checking/unchecking the options for Token Types and Operation Types. You can customize the text that is displayed on an activity record by changing the text in the fields below for each combination of token type and operation type and role.

... but there are no configuration options available, just submit buttons.

boblangdon’s picture

sorry for the duplicate post. Drupal.org's server has gone spastic over the last 24 hours!

iwkse’s picture

Yeah..i edited my comment because this isnt' a real fix. I'll post something if i get a real one.

Bilmar’s picture

subscribing

boblangdon’s picture

Anyone tried the 6x-2x dev?

protoplasm’s picture

subscribing

Ela’s picture

subscribing

okday’s picture

I habe this problem too. Someona have the solution?

Ela’s picture

@boblangdon I can't try 6x-2x dev because I am not using views

mikejonesok’s picture

same problem

noctifer’s picture

subscribing

scott859’s picture

same problem

SoNic-2’s picture

same problem

philipjohn’s picture

Same here... subscribing

boblangdon’s picture

Is anyone maintaining this module?

sirkitree’s picture

I don't get a lot of time to maintain this one. New cooler stuff is happening in 2.x which is actually more stable than 1.x - might just unrelease 1.x and leave 2.x up which is close to having a release.

Anderskj’s picture

Anybody fixed the probelm by running 2.x ? Or any other fix?

sirkitree’s picture

Status: Active » Closed (won't fix)

this doesn't happen in 2.x - 1.x is pretty much abandoned. there is not upgrade path there is the ability to regenerate activity on an existing site.

sarjeet.singh’s picture

Title: Error message... activity.module line 303 » Cannot use object of type stdClass as array in activity/activity.module
Version: 6.x-1.x-dev » 6.x-1.2
Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Critical

Cannot use object of type stdClass as array in activity/activity.module

i got above error on this page "http://www.example.com/admin/settings/activity/user_relationships_api".