Unexpected Token “{” at line 972
-
I don’t need help, I fixed this for myself right now. However, I thought you should be aware of it for future version of the plugin. In the file “slide-anything-front-end.php”, on about line 1634, you are creating a JS object to send client-side. The problem I was running in to was that the JS string you generate, does not have anything in the value side of the property-value pairs if I have nothing set up for mobile. This causes Chrome to throw an error (same as the title of this post). I fixed by adding the following: // exoboy: BEGIN
for($i=1;$i<=6;$i++)
{
$slide_data[‘items_width’ . $i ] = esc_attr( $slide_data[‘items_width’ . $i ] );if( $slide_data[‘items_width’ . $i ] == “” )
{
$slide_data[‘items_width’ . $i ] = ‘null’;
}
}
// exoboy: END
- The topic ‘Unexpected Token “{” at line 972’ is closed to new replies.