• Resolved alsila

    (@alsila)


    Hi

    After migrating I’, getting this error: “Warning: _() expects exactly 1 parameter, 2 given in C:\Inetpub\vhosts\buildthepipe.com\httpdocs\wp-content\themes\simplify\home.php on line 19
    septiembre 10, 2014

    Could you help me please? Thanks!
    Albert

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am now getting a similar error on individual post pages (single.php) It does show the post…this message is just between the header and the post itself. No problem in the home.php file for me or on any of my pages that are pages and not posts…at least not yet!

    Warning: _() expects exactly 1 parameter, 2 given in /home/content/99/11749799/html/wp-content/themes/simplify/single.php on line 17

    In my case, I think I have narrowed it down to one of the following two lines of code…

    <p class=”postmetadataw”><?php echo __(‘Posted by:’, ‘simplify’); ?> <?php the_author_posts_link() ?> | <?php echo _(‘ on’, ‘simplify’); ?> <?php the_time(‘F j, Y’); ?></p>

    or

    <?php echo __(‘Posted in’, ‘simplify’); ?> <?php the_category(‘, ‘) ?> | <?php edit_post_link( __(‘Edit’, ‘simplify’), ”, ‘ | ‘); ?> <?php comments_popup_link(__(‘No Comments »’, ‘simplify’), __(‘1 Comment »’, ‘simplify’), __(‘% Comments »’, ‘simplify’)); ?> <?php the_tags(‘
    ‘. __(‘Tags: ‘, ‘simplify’), ‘, ‘, ‘
    ‘); ?></p>

    I’m going to keep working to determine the problem but any body who has insight…I’d greatly appreciate the help!

    James

    i have the same problem on single.php

    Upon further examination, I am also getting the error on home.php (my posts page is different than my front page). Like alsila, the error on home.php is on line 19.

    I am off to cross reference the two files to see if I can further narrow the area of concern.

    James

    A little more info….the error is occurring on the following entry:

    <?php echo _(‘ on’, ‘simplify’); ?>

    If I remove that entry, the page appears to load fine and so far I have not found any newly created errors but I will continue to look and would appreciate any input from someone more knowledgeable in regards to any problem with the code above or implications from removal.

    Thanks,

    James

    Theme Author D5 Creation

    (@d5creation)

    We are sorry. There was a minor issue in the last version 3.02

    actually

    _(' on', 'simplify')

    will be

    __(' on', 'simplify')

    We have fixed the issue and uploaded the new version with some other updates. You will find that version available soon. By that time you can edit the files and can change

    _(' on', 'simplify')

    to

    __(' on', 'simplify')

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘MySql Error after migrating’ is closed to new replies.