Compile Error: Declaration Of JoomShaper\SPPageBuilder\DynamicContent\Model - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Compile Error: Declaration Of JoomShaper\SPPageBuilder\DynamicContent\Model

S

Seppe

SP Page Builder 7 months ago

Good evening Yesterday I upgraded to Joomla 4.4.12. I have the latest version of Helix Framework and PageBuilder Pro The system still runs on PHP7.4. If I change to PHP 8.3 the website crashed. For this problem I made another topic several months ago.

when I want to visit the website I get the following order:

Compile Error: Declaration of JoomShaper\SPPageBuilder\DynamicContent\Model::offsetExists(JoomShaper\SPPageBuilder\DynamicContent\mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset)

I tried to restore a backup from the website and the database, setting it back to 4.4.11 Although the back up is set back again, the error is still there. The website can not be viewed because of this error. There is no dynamic content in the website.

0
26 Answers
S
Seppe
Accepted Answer
7 months ago #187393

here is where it goes wrong according to the debug mode:

public_html/administrator/components/com_sppagebuilder/dynamic-content/Model.php:419

 * @param mixed $offset The offset
 *      
 * @return bool     
 * @since 5.5.0     
 */    
 public function offsetExists(mixed $offset): bool      <-- this line
 {       
  return isset($this->item->$offset);    
  }   
   /**
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 7 months ago #187529

Hi there,

I'm also using PHP 8.3, but I couldn't replicate the issue. Could you help me identify the problem? Specifically, when did this issue occur?

Best regards,

Toufiqur Rahman (Team Lead, Support)

0
S
Seppe
Accepted Answer
7 months ago #187643

Good morning Touiq I'm sorry, after some phonecalls from my client, I restored an old backup to have the website back online. I just did the regular updates for SPPBpro, Helix framework, like we received update notifications for the last months.

This is the same website that crashes when I switch from PHP 7.4 tot 8.X in the past. Even before this issue. this topic: https://www.joomshaper.com/forum/question/27543

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 7 months ago #187645

Can you give me a Akeeba backup to check the issue?

0
S
Seppe
Accepted Answer
7 months ago #187646

Good morning. Yes that is possible What is the best way to send to you?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 7 months ago #187656

Google drive.

0
S
Seppe
Accepted Answer
7 months ago #187667

Ok, if it works correctly, the link is below.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 7 months ago #187784

I have installed your backup. Can you tell me where should i check exactly?

0
S
Seppe
Accepted Answer
7 months ago #187796

Good morning Toufiq

When I change the PHPversion from 7.4 to 8.X: I get the error-code as in topic: https://www.joomshaper.com/forum/question/27543

When I keep updating all extension (Helix, SPPB, ..) I get the errorcode for the DynamicContent (topic of this forum-item)

In both cases, backend can be used. But frontend of the website gives the errors.

It's all been installed here on another domain to test. but it keeps comming back.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 7 months ago #187817

Please watch the video.

0
S
Seppe
Accepted Answer
7 months ago #187819

Good morning

Thank you. Very strange, If I do it here... the website doesn't work. Maybe I will remove all, website and database, en recoved this backup which you used. Hopefully then all troubles are behind us...

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 7 months ago #187822

Download and install this backup on your staging site.

How to install akeeba backup.

https://drive.google.com/file/d/16fMwHR2ZAa3yctnP5rn7zm6YlwB7ijQj/view

0
S
Seppe
Accepted Answer
5 months ago #194053

Just tried to do another update after so many time. Still the website crashed after the update.

I tried first to restore the backup on a clean webspace, and created a new database.

Even an update to J5.X didn't solve and problems.

also changing from PHP 7.4 tot 8.3 makes the website crash

and the frontpage now gives this error: Class 'JoomShaper\SPPageBuilder\DynamicContent\Services\CollectionsService' not found

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 5 months ago #194096

Please check now and let me know. Thanks

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 5 months ago #194054

Can you provide me your hosting server access & Administrator access?

0
S
Seppe
Accepted Answer
5 months ago #194055

I am clearing now the server and restoring the last update that I took then I will put all credentials below

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 5 months ago #194056

Thanks and let me know once it done.

0
S
Seppe
Accepted Answer
5 months ago #194059

Please see below:

0
S
Seppe
Accepted Answer
5 months ago #194145

Good morning

I see the website is updated to J5.3 on PHP8.3 I will now try to do the update of Helix and see what happens

can you please tell me where it went wrong?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 5 months ago #194148

Everything is up to date. No need to do anything.

0
S
Seppe
Accepted Answer
5 months ago #194356

Many thanks for that. But I still don't know where it went wrong. If it ever happens again, then I would know where to search and hopefully fix it myself

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 5 months ago #194362

I haven’t applied any custom or exceptional changes. I only updated Joomla and the Page Builder.

0
S
Seppe
Accepted Answer
4 months ago #194740

Then it's very weird that for you it works like a charm... and for me I still get the crashes. Don't get me wrong. I'm very glad it's fixed. But is very weird :)

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 months ago #194822

Did you change login password? Can you share a screenshot?

0
S
Seppe
Accepted Answer
4 months ago #194826

Good afternoon Toufiq

No, I didn't change anything Everything works all fine. It's just weird that when you do it, it's all going well When I tried to do it before, the website always crashe :)

it all works now, so let's leave it be that way :) :)

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 months ago #194827

Glad to know that your problem is gone. Let me know if you need any further help.

0