131 Posts
root
2 months ago
12
Topic

I am using PHP 8.2, Joomla 4.4.6, and Seblod 4.3.1.
If I try to update Seblod to the latest version 4.4.0 from 4.3.1, all views break for any content or articles created with Seblod, the website only displays the following error:


0
Call to a member function get() on array


If I go to any content type and edit the content by removing all the fields, the error no longer occurs. The issue arises when trying to view the fields of any kind of content (the content view of a content type).


Any help would be appreciated
Best regards

Get a VIP membership
151 Posts
pixelpixel
2 months ago
3
Level 1

Hi,

maybe a stupid question: but did you test removing the fields one by one? Maybe there is only one field which is causing the problem (maybe outdated field type?) 🙂

Best regards

131 Posts
root
2 months ago
2
Level 2

Hello, thank you for your fast response.

Yes, that's the first thing I tried to rule out having any outdated field as you rightly mentioned. I removed all the fields one by one until, finally, only a simple text field that provided the title of the article remained, and the same error still occurred. When I removed them all, there was no content, but the error disappeared.

Best regards

Adonay

151 Posts
pixelpixel
2 months ago
1
Level 3

Did you try another Joomla Frontend-Template for testing? Or deactivated all modules?

But I must say that I didn't tested the newest Seblod version yet. Maybe it is indeed a new problem with the latest version 🤷🏻

Best regards

131 Posts
root
2 months ago
0
Level 4

Yes, thank you. I just tested it.

I have disabled all the modules and also changed the template to Cassiopeia. The error still appears. If I put Seblod in debug mode, nothing shows up either because the page doesn't get rendered. If I set the Apache server log level to debug, there's no trace of the error either.

Kind regards

131 Posts
root
2 months ago
0
Level 1

Activating Joomla's own debugger after updating Seblod to version 4.4.0, shows this error regarding the Content - Page Navigation plugin:

	ERROR 0 - Call to a member function get() on array in /plugins/content/pagenavigation/src/Extension/PageNavigation.php:56

If I disable the pagination plugin, the next error comes from the Content - Vote plugin:

	ERROR 0 - Call to a member function get() on array in /plugins/content/vote/src/Extension/Vote.php:99

If I disable the Content - Vote plugin, the next error comes from the article html view.

	ERROR 0 - Call to a member function get() on array in /components/com_content/src/View/Article/HtmlView.php:240

The Apache error log shows no errors, and the access log displays a 500 Internal Server Error.

Best regards.

47 Posts
StanislavR
2 months ago
0
Level 1

Hi,

I updated Seblod 4.3.1 => 4.4.0 (joomla 4.4.5, PHP 8.1). I have many types of content (5-6)

1. the Content view (viewing the full view of the material) does not work (error 404) - all types of content

2. editing of the material some (not all) on front site does not work (error 404)

3. some (not all) materials does not open in the administrative part of the site - error - Undefined constant "field"

Part 2

I updated Seblod 4.3.1 => 4.4.0 (joomla 4.4.4, PHP 8.1). Clean site.Only standart types of content, Casiopea

1. the Content view (viewing the full view of the material) does not work !!!! Error - Call to a member function get() on array

2. front editing of the material  - OK

3. open in the administrative part of the site - OK

Stanislav

131 Posts
root
2 months ago
0
Level 1

Indeed, I have done a similar test. I installed Joomla 4.4.8 from scratch. I installed Seblod 4.3.1. I created a menu that pointed to the creation of a new Seblod article. I created the article and then viewed it. Everything went well. Then I updated to Seblod 4.4.0, and the entire site can no longer be viewed. The Apache server access log only reports Error 500, and the website using the Cassiopeia template shows: Error 0 Call to a member function get() on array.

Better not to update to Seblod 4.4.0 for now.

Best regards.

31 Posts
gzukry
1 month ago
0
Level 1

Same error J4 + seblod 4.4.1 :/ Don't update

131 Posts
root
1 month ago
2
Level 1

Hi,

I find it quite surprising that version 4.4.1 was released today, and the developers haven't even tested version 4.4.0, which doesn't work, and consequently, neither does 4.4.1.

What's going on here? All of this is starting to seem suspicious.

Don't update if your site is under production.

Best regards.

31 Posts
gzukry
1 month ago
1
Level 2

I guess same happens on J5 and now, it might work on J5 .. but J4 is still broken :S weird it stay like this, and weird there were not so much post in forum about this issue. I have this problem on every site i update to 4.4.0.

Changelog sais : 

# Pagination fixed on J! 5.4.1

>> setAdditionalUrlParam added on default_list.php
(if overridden this will need to be added manually)


# Various notices fixed.

131 Posts
root
1 month ago
0
Level 3

Hi, thank you.

Well, it's possible. In the tests I was doing in 4.4.0 with J5, it didn't cause the internal server error that it causes in J4, and it still doesn't cause it in 4.4.1.

It's paradoxical that all the sites I maintain in J4 are precisely the ones using Seblod, however, it has stopped working in J4.

In J5, the recommended php version is 8.3 and Seblod is still incompatible with that php version.

131 Posts
root
1 month ago
0
Level 1

At least this has helped me update all the remaining sites to Joomla 5 with php8.2

Every cloud has a silver lining.

Get a VIP membership