dudaster / ele-custom-skin

Create a skin for Elementor Pro Post and Post Archive widgets using Elementor templates
GNU General Public License v3.0
59 stars 10 forks source link

Getting a PHP warning for Illegal string offset 'url' #118

Open bmarshall511 opened 4 years ago

bmarshall511 commented 4 years ago

Created a loop template using the Flip box widget and a dynamic url for the link. Getting:

Warning
: Illegal string offset 'url' in
.....wp-content/plugins/elementor/includes/base/controls-stack.php
on line 1177

I've used other Flip box widgets elsewhere outside of Skin and work fine. Seems to only happen when using a look template.

Ex. https://rebuild-sparkcognition.pantheonsite.io/

dudaster commented 4 years ago

I know the issue. I'm still looking for a solution, even asked Elementor guys to have in mind this issue.

If you are using ECS Pro just add {{permalink}} in the link field and turn on Dynamic Everywhere in Posts Widget.

fafchook commented 4 years ago

Having the same exact issue. Is there a solution in the near future?

digitayfun commented 4 years ago

I am having the same issue

Warning Illegal string offset 'url' in wp-content/plugins/elementor/includes/base/controls-stack.php on line 1177

maximseshuk commented 4 years ago

I am having the same issue if use Control Type URL dynamic field data.

Warning: Illegal string offset 'url' in wp-content\plugins\elementor\includes\base\controls-stack.php on line 1177

ambertripp1983 commented 4 years ago

I'm having the exact same issue. Any luck finding a solution?

maximseshuk commented 4 years ago

I'm having the exact same issue. Any luck finding a solution?

This is an Elementor problem. I found a solution in Elementor code, but I'm not sure if it's perfect.

ambertripp1983 commented 4 years ago

I'll take what I can get for now just to get some functions working. Where in Elementor did you find the solution?

dudaster commented 4 years ago

You need to hack elementor's code and I wouldn't recomend, you'll loose the changes with elementor updates.

If you are a ECS Pro user you can use dynamic everywhere to workaround the problem by typing {{permalink}} in the custom URL field.

TarunNarula commented 4 years ago

I resolved it for a temporary solution. Changing line no. 176 from

if ( $dynamic_property ) ) { to if ( $dynamic_property && isset($settings[ $control_name ][ $dynamic_property ]) ) {

dudaster commented 4 years ago

no. 176 from what file?

pippyn commented 4 years ago

I found it too.. And can confirm this temporary solution works.

It's line 1176 of /elementor/includes/base/controls-stack.php

pippyn commented 4 years ago

@dudaster Do you know if it's possible to fix this issue?

dwillitzer commented 4 years ago

I can confirm that modification does resolve the issue; had this issue come up on several sites.

timaxsos commented 4 years ago

Yes the fix works.

PPjev commented 4 years ago

Yes, the FIX works, it is on line 1204 now, latest version of elementor as of today.

gbonamie commented 4 years ago

I usually use this fix too -thanks @TarunNarula - but could not get it working after elementor's latest update -3.0.6.

UPDATE: works again with 3.0.7

meilinda01 commented 3 years ago

I have the same issue

EmerKelly commented 2 years ago

@dudaster how would I get around this using the Progress Bar widget? I am using ECS Pro, so I can turn on Dynamic Everywhere, just not sure where to add {{permalink}}?