Coder Social home page Coder Social logo

Error qa-donut-layer.php about donut HOT 5 CLOSED

yerbol89 avatar yerbol89 commented on May 24, 2024
Error qa-donut-layer.php

from donut.

Comments (5)

amiyasahu avatar amiyasahu commented on May 24, 2024

It should work now . Can you please check and let me know

from donut.

yerbol89 avatar yerbol89 commented on May 24, 2024

@amiyasahu i edit this code. After i see error log.
[Fri Aug 14 17:27:51 2015] [error] [client 2.132.176.131] PHP Parse error: syntax error, unexpected '=', expecting ')' in /var/www/szh/data/www/szh.kz/test/qa-theme/Donut-dev/templates/top-header.php on line 6

After i edit top-header.php

<?php $header_left_text = donut_opt( 'top_bar_left_text'); ?>
<?php if (!empty( $header_left_text )): ?>
<?php echo $header_left_text ?>
<?php endif ?>

and

<?php $header_right_text = donut_opt( 'top_bar_right_text' ); ?>
<?php if ( !empty( $header_right_text ) ): ?>
<?php echo $header_right_text ?>
<?php endif ?>

Now its nice work. I use PHP Version 5.3.3-7+squeeze26

from donut.

amiyasahu avatar amiyasahu commented on May 24, 2024

can you paste here what did you edited . I am using PHP 5.6 , thats why I am not seeing these errors .

from donut.

yerbol89 avatar yerbol89 commented on May 24, 2024

You code:

<?php if ( !empty( $header_left_text = donut_opt( 'top_bar_left_text' ) ) ): ?>
<?php echo $header_left_text ?>
<?php endif ?>
<?php if ( !empty( $header_right_text = donut_opt( 'top_bar_right_text' ) ) ): ?>
<?php echo $header_right_text ?>
<?php endif ?>

My code:

After i edit top-header.php

<?php $header_left_text = donut_opt( 'top_bar_left_text'); ?>
<?php if (!empty( $header_left_text )): ?>
<?php echo $header_left_text ?>
<?php endif ?>

and

<?php $header_right_text = donut_opt( 'top_bar_right_text' ); ?>
<?php if ( !empty( $header_right_text ) ): ?>
<?php echo $header_right_text ?>
<?php endif ?>

from donut.

amiyasahu avatar amiyasahu commented on May 24, 2024

ok , This clearly this is due to the PHP version . I will update soon .

from donut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.