Download all Joomla templates including quickstart (demo)only $24.99

Forum

Important - Hands Up!

- Please ask using the account with which you made the purchase or download of our products and in its respective category.
- If you bought our products in another market, ask your questions in that market, not here.

* ADD PRODUCT NAME IN START OF SUBJET

ut joomstagram error - property_exists(): Argument #1 ($object_or_class) must be

  • S
  • simgiallorosso New Member
  • Topic Author 2 weeks 1 day ago #1
hello and thank you for your time.
I have been using ut joomstagram for years on various sites.

just today I updated the token given the changes made by instagram by creating the business app.

it works on all sites except one

this

I get this error.property_exists(): Argument #1 ($object_or_class) must be of type object|string, null givenTypeError
in /web/htdocs/www.dalessandrohairtherapy.it/home/modules/mod_ut_joomstagram/helper.php (line 62)
Code:
if ($today >= $regenerationThresholdDate) { $get_fresh_token = $http->get($refresh_url.$token)->body; $fresh_token_json = json_decode($get_fresh_token); // create token.json if refresh response with access_token and not with error if(property_exists($fresh_token_json, 'access_token')){ // Adding expires date (date of 60 days from now) $fresh_token_json->token_expires_date = date('Y-m-d', strtotime("+60 day")); $improved_token_json = json_encode($fresh_token_json, JSON_PRETTY_PRINT); file_put_contents($token_file, $improved_token_json, LOCK_EX); } else { // to remove token.json if it have expired access_token

however I also got this same error before December 4th using the old instagram basic app.

can you help me?
I also tried reinstalling the module, but nothing changes.
thanks

Please Log in or Create an account to join the conversation.

  • L
  • leoalv Moderator
  • 2 weeks 1 day ago #2
Hello
Try deleting the cache/mod_ut_joomstagram folder and refreshing your site and let me know if that fixes it or not.

You say that the module is working correctly on other sites with a commercial application (honestly we haven't tested it), but if it works for you on others it should work on this one too, or are the others on other hostings?

Regards

Please Log in or Create an account to join the conversation.

  • S
  • simgiallorosso New Member
  • Topic Author 1 week 1 day ago #3
good morning, only on this site , every time the cache is recreated and the site crashes.
I fixed it on 7 sites and the only one that does this is this site.
the others work regularly.
do you have any idea why?
as soon as I empty the cache it starts working again but after 360 seconds the problem comes back.

I tried to set the cache to very high 3600000 but nothing to do

Please Log in or Create an account to join the conversation.

  • L
  • leoalv Moderator
  • 1 week 1 day ago #4
Have you followed the current documentation, updated on December 12, 2024, to obtain the token? Because when we accessed your site it works perfectly after accepting the Cookies.

PS: If you send a URL please do so with confidential data
Regards

Please Log in or Create an account to join the conversation.

  • S
  • simgiallorosso New Member
  • Topic Author 1 week 1 day ago #5
absolutely yes, also because otherwise you wouldn't see the instagram photos if the old token was set.

but it worked for me yesterday, but then after a certain time it went into error.

I emptied the cache by deleting the mod_ut_joomstagram folder and it started again. now I have set the cache time to 10000000000

let's see what happens after this time

Please Log in or Create an account to join the conversation.

  • L
  • leoalv Moderator
  • 1 week 1 day ago #6
And how much have you put in the Days to Refresh Token field?

Please Log in or Create an account to join the conversation.

  • S
  • simgiallorosso New Member
  • Topic Author 5 days 8 hours ago #7
57000

Please Log in or Create an account to join the conversation.