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

Joomstagram - Warning message

  • D
  • DuRaN New Member
  • Topic Author 1 year 6 months ago #1
Hello everyone! I just installed the Joomstagram module and I get the following error message, so it doesn't show the content correctly:

Warning: Undefined property: stdClass::$caption in [...]/mod_ut_joomstagram/tmpl/default_item.php on line 58

Any idea about how to fix it?

Best regards!!!

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

  • L
  • leoalv Moderator
  • 1 year 6 months ago #2
The problem is not the code, the problem is in the JSON that is obtained from instagram, possibly the JSON is not being obtained or the JSON has errors or strange characters that make media->caption inaccessible.

Regards

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

  • D
  • DuRaN New Member
  • Topic Author 1 year 6 months ago #3
This is what I see, before was line 58, now on line 115 but it shows the same error and images



Is not possible to fix it?

Thanks
Attachments:

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

  • L
  • leoalv Moderator
  • 1 year 6 months ago #4
Go to your site root /cache/mod_ut_joomstagram/YOURUSERNAME/feed.json and share file to check.

Your instagram posts have descriptions?

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

  • D
  • DuRaN New Member
  • Topic Author 1 year 6 months ago #5
Some have description and others not

File Attachment:

File Name: feed_2023-01-11.zip
File Size:4 KB
Attachments:

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

  • L
  • leoalv Moderator
  • 1 year 6 months ago #6
What version of joomstagram are you using? because the default_item.php file only has 73 and not 115. Or have you made modifications to the file?

On the other hand, the problem is that some of your instagram posts do not have a description, therefore the json does not have the CAPTION key. But we have that with the condition that data is obtained only if the caption key exists, therefore there should be no errors.
What do you have selected in Joomla configuration >> Server >> Error Reporting?
What version of PHP are you using?

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