เทพ Wordpress ช่วยด้วยครับแก้ error

เริ่มโดย 1ZAA, 17 มิถุนายน 2014, 12:39:33

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

1ZAA

พอโพสข้อความแล้วขึ้น error แบบนี้ครับ

Warning: printf() [function.printf]: Too few arguments in /home/irh10286/domains/01.in.th/public_html/wp-content/themes/fearless/content.php on line 37



ช่วยด้วยครับ ว่าแก้ยังไงไม่ให้ขึ้นข้อความนี้ครับ

ขอบคุณล่วงหน้าครับ [+1]
[direct=http://www.rzeer.com][/direct]
[direct=http://www.rzeer.com]อาเสี่ย ดอทคอม[/direct] [direct=http://www.6395789.com]โลโก้ฮวงจุ้ย[/direct]  [direct=http://www.logo789.com]โลโก้มงคล[/direct]  Good Idea, Good Timing, Good Price, Good Connection.

smapan

น่าจะลองถามโฮสดูนะครับว่าจะปิด error ยังไง
[direct=http://cp.siamhostweb.com/cart.php?gid=1]จูมล่าโฮส สยามโฮสเว็บ[/direct] [direct=http://www.modty.com]modty.com[/direct]
[direct=http://www.apartment.in.th]รวมที่พัก เช่ารายวัน ที่พักเช่ารายเดือนมากที่สุดแจ่มจริง[/direct]
***Tel 083-757-1515 ติดปัญหา Joomla ตรงไหนรับปรึกษาฟรี โทรมาเถอะครับ ถ้าตอบได้ช่วยแน่นอน ไม่มีกั้ก. ***

ijeed

[direct=https://www.xn--72caic4dq4dbbh8hb1cya5b0a1nng.com]รับซื้อทองเชียงราย[/direct]
[direct=https://www.xn--72ch0bkxyb6fb6adv1d1hnf.com]รับซื้อทองพะเยา[/direct]
[direct=https://www.xn--42cfblc6eta3ebbi7ib5c0a8b1a0ob7o.com]รับซื้อทองเคเชียงราย[/direct]
[direct=https://www.xn--72cfac8eza4abbed7i1bya5b0a8md9n.com]รับซื้อเพชรเชียงราย[/direct]
[direct=https://www.xn--b3cb8brbybe1g8adv1dwhf0l.com]รับซื้อเพชรพะเยา[/direct]

1ZAA

ผมจำได้ว่าตอนแรกที่อัพโหลดธีม ดูโพสแล้วมันยังไม่ขึ้นเลยครับ มันเพิ่งมาเป็นทีหลังครับ เห็นเมื่อไม่กี่วันนี้เอง  :P
[direct=http://www.rzeer.com][/direct]
[direct=http://www.rzeer.com]อาเสี่ย ดอทคอม[/direct] [direct=http://www.6395789.com]โลโก้ฮวงจุ้ย[/direct]  [direct=http://www.logo789.com]โลโก้มงคล[/direct]  Good Idea, Good Timing, Good Price, Good Connection.

Maxio

ลองดูไฟล์ content.php บรรทัดที่ 37 ครับ

อ้อ แล้วปิด error ไว้ดีกว่าครับ กรณีอัพขึ้นเว็บจริง

โดยการเพิ่ม define('WP_DEBUG', false); ที่ไฟล์ wp-config.php ครับ

1ZAA

คุณ Maxio ช่วยดูด้วยครับแก้ และใส่ code ไม่เป็นครับ


<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">

<?php if ( is_singularget_post_type() ) ) : ?>

<?php
$format get_post_format();
get_template_part'post-header'$format );
?>


<header class="entry-header">
<?php if (
fearless_get_option'singular_featured_image_enabled' )
&& 'audio' != $format
&& 'gallery' != $format
&& 'video' != $format
) {
fearless_post_thumbnail();
}
?>


<h1 class="entry-title"><?php single_post_title(); ?></h1>
<?php
printf(
apply_atomic_shortcode(
'entry_byline',
'<div class="entry-byline">' __'Posted by [entry-author] on [entry-published] in [entry-terms taxonomy="category"] | %1$s [entry-comments-link before=" | "]''fearless' ) . '</div>'
),
sprintf(
_n(
'1 View',
'%1$s Views',
get_post_metaget_the_ID(), 'Views'true ),
'fearless'
),
get_post_metaget_the_ID(), 'Views'true )
)
);
?>

</header><!-- .entry-header -->

<div class="entry-content">
<?php if ( is_singular'post' ) ) get_template_part'review-box' ); ?>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' '<span class="before">' __'Pages:''fearless' ) . '</span>''after' => '</p>' ) ); ?>
</div><!-- .entry-content -->

<footer class="entry-footer">
<?php echo apply_atomic_shortcode'entry_meta''<div class="entry-meta">' __'[entry-terms before="Posted in " taxonomy="category"] [entry-terms before="| Tagged "]''fearless' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->

<?php else : ?>

<?php global $fearless_blogroll_layout?>

<?php fearless_post_thumbnail$fearless_blogroll_layout['thumbnail_size'] ); ?>

<header class="entry-header">
<?php the_title'<h2 class="entry-title"><a href="' get_permalink() . '">''</a></h2>' ); ?>
<?php echo apply_atomic_shortcode'entry_byline''<div class="entry-byline">' __'[entry-author] / [entry-published]''fearless' ) . '</div>' ); ?>
</header><!-- .entry-header -->

<?php if ( $fearless_blogroll_layout['excerpt_length'] ) : ?>
<div class="entry-summary">
<?php echo fearless_get_the_excerpt$fearless_blogroll_layout['excerpt_length'] ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' '<span class="before">' __'Pages:''fearless' ) . '</span>''after' => '</p>' ) ); ?>
</div><!-- .entry-summary -->
<?php endif; ?>

<?php if ( '1col-thumb' != $fearless_blogroll_layout['style'] ) : ?>
<p class="more-link-wrapper"><a href="<?php the_permalink(); ?>" class="read-more button"><?php _e'Read More &raquo;''fearless' ); ?></a></p>
<?php endif; ?>

<?php endif; ?>

</article><!-- .hentry -->
[direct=http://www.rzeer.com][/direct]
[direct=http://www.rzeer.com]อาเสี่ย ดอทคอม[/direct] [direct=http://www.6395789.com]โลโก้ฮวงจุ้ย[/direct]  [direct=http://www.logo789.com]โลโก้มงคล[/direct]  Good Idea, Good Timing, Good Price, Good Connection.

Maxio

รู้สึกว่ามันจะ error ตรงนี้อะครับ มีพวก Plugin อะไรที่ deactivated มันไว้รึเปล่าครับ

ไม่งั้นก็คงต้องถามเจ้าของ Theme แล้วอะครับ เพราะมี shortcode ที่เขียนเองอยู่อะครับ



<?php
printf
(
apply_atomic_shortcode(
'entry_byline',
'<div class="entry-byline">' __'Posted by [entry-author] on [entry-published] in [entry-terms taxonomy="category"] | %1$s [entry-comments-link before=" | "]''fearless' ) . '</div>'
),
sprintf(
_n(
'1 View',
'%1$s Views',
get_post_metaget_the_ID(), 'Views'true ),
'fearless'
),
get_post_metaget_the_ID(), 'Views'true )
)
);
?>



อ้อผมเห็นชื่อธีม Fearless ไม่รู้ว่าใช่ตัวเดียวกันรึเปล่า

เห็น changelog เวอร์ชันล่าสุดเค้าแก้ไขเรื่อง entry meta PHP warning น่าจะที่เดียวกับที่คุณเจอเลย


อ้างถึง
CHANGELOG

1.7.1 – Fixed entry meta PHP warning; fixed sidebar naming bug
content.php
style.css
includes/widget-areas.php
languages/fearless.pot

1ZAA

ขอบคุณ คุณ Maxio นะครับ ผมว่าผมเปลี่ยนธีมดีกว่า รู้สึกว่าเค้าเขียนเพิ่มครับ ไม่ work แล้วครับ
[direct=http://www.rzeer.com][/direct]
[direct=http://www.rzeer.com]อาเสี่ย ดอทคอม[/direct] [direct=http://www.6395789.com]โลโก้ฮวงจุ้ย[/direct]  [direct=http://www.logo789.com]โลโก้มงคล[/direct]  Good Idea, Good Timing, Good Price, Good Connection.