nocaredev
Forum Replies Created
-
For now you can change:
$s3_domain = $as3cf->get_provider()->get_url_domain( $s3_bucket, $s3_region, null, array(), true );To:
$s3_domain = $as3cf->get_storage_provider()->get_url_domain( $s3_bucket, $s3_region, null, array(), true );Seems they renamed/removed a function and didn’t replace everywhere it was used.
Forum: Fixing WordPress
In reply to: Visual Composer is not workinghtml2element function fix solves the backend code issue.
However you still have a problem with js_composer/assets/js/frontend/ files.
However if you open up the frontend editor you’ll have this “trim” issue on custom_views.js:101 , and line 467 of another file. I forgot the name, but I think it may be frontend_editor.js.
Example code is from custom_views and may be slightly different in the other file, just apply explained fix for trim.
Bad code:
this.$controls = $( _.template( template, data, _.extend( {}, vc.template_options, { evaluate: /\{#([\s\S]+?)#}/g } ) ).trim() ).addClass( 'vc_controls' );Fixed code:
this.$controls = $( _.template( template, data, _.extend( {}, vc.template_options, { evaluate: /\{#([\s\S]+?)#}/g } ) )().trim() ).addClass( 'vc_controls' );As you can see, since _.template is a function which returns html as a string, you need to call it as a function, turning it into a string, before trying to execute trim on it.
Hope this was helpful, cheers.