Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Error in ../codeless_builder/header-elements/cl_header_text.php in 1.1.0

    • 7 years, 10 months ago brightestspark
      Participant

      Expired

      Hi there – I just updated theme to 1.1.0 and it whitescreened my site. I checked the error logs and saw this error:

      [04-Sep-2017 03:55:18 UTC] PHP Parse error:  syntax error, unexpected ‘)’, expecting ‘,’ or ‘;’ in …/wp-content/themes/folie/includes/codeless_builder/header-elements/cl_header_text.php on line 20

      After I renamed that file, I can restore my site, but my header text is missing.

      • This topic was modified 7 years, 10 months ago by brightestspark.
    • 7 years, 10 months ago Mirela
      Participant

      Hello,

      Can you please add some valid wp login credentials into your profile data extra fields?
      So we can give it a closer look.
      Read this article for more information.

      Best regards!

    • 7 years, 10 months ago brightestspark
      Participant

      Expired

      Hi Mihalia – I have done that now.

    • 7 years, 10 months ago mawen
      Participant

      Expired

      Hey guys, I have the same problem, errors in
      Parse error
      : syntax error, unexpected ‘)’, expecting ‘,’ or ‘;’ in wp-content/themes/folie/includes/codeless_builder/header-elements/cl_header_text.php on line 20

      Have added my info into the profile…

      • This reply was modified 7 years, 10 months ago by mawen.
      • This reply was modified 7 years, 10 months ago by mawen.
    • 7 years, 10 months ago Mirela
      Participant

      Hello,

      Please go to file folie/includes/codeless_builder/header-elements/cl_header_text.php and replace the existing code with the below:

      <?php
      
      extract($element['params']);
      
      $output = '';
      
      $output = '';
      $text_id = 'cl_text_' . uniqid();
      
      if( (int) $margin_paragraphs != 10 ){ ?>
      
          <style type="text/css">
              #<?php echo esc_attr( $text_id ) ?> p{ margin-top: <?php echo esc_attr( $margin_paragraphs ) ?>; margin-bottom:<?php echo esc_attr( $margin_paragraphs ) ?>; }
          </style>
          
      <?php } ?>
      
      <div id="<?php echo esc_attr( $text_id ) ?>" class="cl-text <?php echo esc_attr( $this->generateClasses('.cl-text') ) ?>" <?php $this->generateStyle('.cl-text', true ) ?>>
          <?php echo cl_remove_wpautop($content, true); ?>
      </div>

      Save changes and check your site.

      @brightestspark
      i already made the change for you using the given ftp credentials. You only need to rename back to original the file and refresh site.
      Let us know.

      PS: We are pushing on an immediate update for this fix. So you do not have to worry for future updates.

      Best regards!

    • 7 years, 10 months ago brightestspark
      Participant

      Expired

      Wonderful. Thanks for the quick fix.

Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password