1. SP Page Builder 3.x
  2. Friday, 14 August 2020
Hi,

I created a page in SP Page Builder a while ago which used the Testimonials addon.

I recently updated SP Page Builder to the latest version, copied the page created earlier, and uploaded a new avatar image for the testimonial.

Then my frontend editor broke and when I access the page directly, I get a 500 error.

The console tells me:

TypeError: avatar.indexOf is not a function


I then compared the "avatar" value in the template.json from the old page with the new one, and this is what I found:

Old page
"avatar": "images/2020/03/03/emmanuel.jpeg",


New page
"avatar": {
"src": "images/2020/08/14/chris.jpeg",
"height": 500,
"width": 500
},


It seems the avatar format has changed in the new version of SP Page Builder, and this is causing the error.

How do I resolve this?
Responses (9)
Hi there,

I have imported your JSON file into my site & it works fine.

https://helix-framework.org/component/sppagebuilder/?view=page&id=58

Check the new JSON attachment

-Thanks
Attachments (1)
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 1
Hi there, You didn't mention the page builder version. Maybe the testimonial addon & sp_media table updated. That's why occurred the problem. Can you give me the JSON file of the old version? And let me know which version was your old. Thanks


Hi Toufiq, sorry for the late reply, I was on holiday.

Here is the old JSON file: https://www.valuespreadsheet.com/files/template93523.json

I have no idea anymore what the exact version was with which I built that page, as I have updated SP Page Builder several times already.

Hope this helps!
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 2
Hi there,

I have checked the Testimonials addon & it works fine without any problem.

http://prntscr.com/u2n0vp
http://prntscr.com/u2n13f
http://prntscr.com/u2n0ok

https://helix-framework.org/component/sppagebuilder/?view=page&id=55
http://prntscr.com/u2n18v

-Thanks


Hi Toufiq,

The addon works, but only if I create a new page.

If I copy an old page which has the Testimonials addon in it, and then change one of the avatar images, the error occurs.

Did the JSON format of the avatar change in recent versions of SP Page Builder, like I mentioned in my initial post?

Nick


Hi there, Please watch the video.

https://drive.google.com/file/d/16K2Mh6zX2MyULvH4U9-sI5iZnQm5vY0a/view

-Thanks


Thanks again, Toufiq, and I'm glad to see you are not having any issues, but I definitely am.

And the difference from my situation compared to your test is that the original page was created with an older version of SP Page Builder, which is then imported into a newer version of SP Page Builder, and then the JSON looks different between those two versions, which then causes my error.

I now had to edit the JSON directly in the database to change the testimonial image.

If you don't know the answer, then that is fine, I will just have to manually work around it I guess or create a fresh page.


Hi there, You didn't mention the page builder version. Maybe the testimonial addon & sp_media table updated. That's why occurred the problem. Can you give me the JSON file of the old version? And let me know which version was your old. Thanks
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 3
Hi there,

I have checked the Testimonials addon & it works fine without any problem.

http://prntscr.com/u2n0vp
http://prntscr.com/u2n13f
http://prntscr.com/u2n0ok

https://helix-framework.org/component/sppagebuilder/?view=page&id=55
http://prntscr.com/u2n18v

-Thanks


Hi Toufiq,

The addon works, but only if I create a new page.

If I copy an old page which has the Testimonials addon in it, and then change one of the avatar images, the error occurs.

Did the JSON format of the avatar change in recent versions of SP Page Builder, like I mentioned in my initial post?

Nick


Hi there, Please watch the video.

https://drive.google.com/file/d/16K2Mh6zX2MyULvH4U9-sI5iZnQm5vY0a/view

-Thanks


Thanks again, Toufiq, and I'm glad to see you are not having any issues, but I definitely am.

And the difference from my situation compared to your test is that the original page was created with an older version of SP Page Builder, which is then imported into a newer version of SP Page Builder, and then the JSON looks different between those two versions, which then causes my error.

I now had to edit the JSON directly in the database to change the testimonial image.

If you don't know the answer, then that is fine, I will just have to manually work around it I guess or create a fresh page.
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 4
Hi there,

I have checked the Testimonials addon & it works fine without any problem.

http://prntscr.com/u2n0vp
http://prntscr.com/u2n13f
http://prntscr.com/u2n0ok

https://helix-framework.org/component/sppagebuilder/?view=page&id=55
http://prntscr.com/u2n18v

-Thanks


Hi Toufiq,

The addon works, but only if I create a new page.

If I copy an old page which has the Testimonials addon in it, and then change one of the avatar images, the error occurs.

Did the JSON format of the avatar change in recent versions of SP Page Builder, like I mentioned in my initial post?

Nick


Hi there, Please watch the video.

https://drive.google.com/file/d/16K2Mh6zX2MyULvH4U9-sI5iZnQm5vY0a/view

-Thanks
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 5
Hi there,

I have checked the Testimonials addon & it works fine without any problem.

http://prntscr.com/u2n0vp
http://prntscr.com/u2n13f
http://prntscr.com/u2n0ok

https://helix-framework.org/component/sppagebuilder/?view=page&id=55
http://prntscr.com/u2n18v

-Thanks


Hi Toufiq,

The addon works, but only if I create a new page.

If I copy an old page which has the Testimonials addon in it, and then change one of the avatar images, the error occurs.

Did the JSON format of the avatar change in recent versions of SP Page Builder, like I mentioned in my initial post?

Nick
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 6
Hi there,

Thanks for contacting us. Sorry for the inconvenience. Which Template did you use on your project and Is this addon override inside the Template location?

-Thanks


Hi Toufiq,

I use the Helix Ultimate template for my SP Page Builder page, but the addon override is in my main template folder, which is a different one.

Nick
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 8
Hi there,

Thanks for contacting us. Sorry for the inconvenience. Which Template did you use on your project and Is this addon override inside the Template location?

-Thanks
  1. more than a month ago
  2. SP Page Builder 3.x
  3. # 9


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.