Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter hungviet

    (@hungviet)

    Hi acmb3!

    Warning: require(.//blog1/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /blog1/index.php on line 7

    Fatal error: require() [function.require]: Failed opening required ‘.//blog1/wp-blog-header.php’ (include_path=’.:/include:/usr/lib/php’) in /blog1/index.php on line 7

    I already fix the above problem by edit line 7 in index.php . I change .//blog1/wp-blog-header.php into /blog1/wp-blog-header.php .

    Now I can open any article posted in my blog…But … it’s very slow ! How come ???? I need your help again ! Can you take a look on my blog http://hung-viet.org and if you have time.

    Thanks,
    HV

    Thread Starter hungviet

    (@hungviet)

    It isn’t on the same line. So I put it on the same line and I can see my blog http://hung-viet.org. But when I click on an article to read it, I got the following message. Can you tell me what I’ve to fix …. Thanks!

    Warning: require(.//blog1/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /blog1/index.php on line 7

    Fatal error: require() [function.require]: Failed opening required ‘.//blog1/wp-blog-header.php’ (include_path=’.:/include:/usr/lib/php’) in /blog1/index.php on line 7

    Thread Starter hungviet

    (@hungviet)

    The following is from line 172 to line 205 from /wp-content/themes/iBizPressLightMagazine/functions.php . There’re 1313 lines in this file.

    Thank a lot for your help.

    HV

    if (!$show_pass_post) $request .= “AND post_password =” “;

    $request .= “AND comment_approved = ‘1’ ORDER BY comment_ID DESC LIMIT $no_comments”;

    $comments = $wpdb->get_results($request);
    $output = ”;
    if ($comments) {
    foreach ($comments as $comment) {

    // Permalink to post/comment
    $loop_res[‘permalink’] = get_permalink($comment->ID). ‘#comment-‘ . $comment-

    >comment_ID;

    // Title of the post
    $loop_res[‘post_title’] = stripslashes($comment->post_title);
    $loop_res[‘post_title’] = wordwrap($loop_res[‘post_title’], $wordwrap_length, ‘ ‘ , 1);

    if (strlen($loop_res[‘post_title’]) >= $title_length) {
    $loop_res[‘post_title’] = substr($loop_res[‘post_title’], 0, $title_length) .

    ‘…’;
    }

    // Author’s name only
    $loop_res[‘author_name’] = stripslashes($comment->comment_author);
    $loop_res[‘author_name’] = wordwrap($loop_res[‘author_name’], $wordwrap_length, ‘ ‘ , 1);

    if ($loop_res[‘author_name’] == ”) $loop_res[‘author_name’] = $mwlang_anonymous;
    if (strlen($loop_res[‘author_name’]) >= $author_length) {
    $loop_res[‘author_name’] = substr($loop_res[‘author_name’], 0, $author_length) .

    ‘…’;
    }

    Thread Starter hungviet

    (@hungviet)

    1- @ acmb3
    Put it above the short and sweet comment. Might give us a clue.
    Is it what you mean ?

    <?php
    ini_set(‘display_errors’, 1);
    error_reporting(E_ALL);
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    define(‘WP_IN_ROOTDIR’, true);
    require(‘.//blog1/wp-blog-header.php’);
    ?>

    If what I did is what you mean, I see the following error message (instead of blank page) when I go to my blog http://hung-viet.org :

    Parse error: syntax error, unexpected ‘>’ in /www/blog1/wp-content/themes/iBizPressLightMagazine/functions.php on line 184

    2- @aaron Nimocks
    What new row did you enter and why? I can’t think of any reason you would ever add a new row in phpmyadmin.

    I did it always many times since my blog created (2 years ago)when I needed adding a new option_id, option_name, option_value

    Can you find that row and remove it?
    I already removed that row many days ago.

    Thanks .

    Thread Starter hungviet

    (@hungviet)

    1- @ acmb3

    This is what I see in my index.php initially:
    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    define(‘WP_IN_ROOTDIR’, true);
    require(‘.//blog1/wp-blog-header.php’);
    ?>

    I don’t know where I should put the below code as you suggested:

    ini_set(‘display_errors’, 1);
    error_reporting(E_ALL);

    2- @aaron Nimocks
    In phpMy I only modify table wp_options by inserting a new row and there’s no error message after I did it. I did the same thing many times already. But this time …

    Thanks again for you help – both of you!

    Thread Starter hungviet

    (@hungviet)

    Please explain what do you mean

    make sure it has the RIGHT database settings

    Thanks for you patience !
    HV

    Thread Starter hungviet

    (@hungviet)

    Thanks acmb3. I’ll do your suggestion. Pray for me!

    Thread Starter hungviet

    (@hungviet)

    But a strange thing happened is A NEW BLANK TABLE WAS CREATED WHILE I NEVER CREATED IT.

    Sorry, it must be A NEW BLANK DATABASE WAS CREATED …

Viewing 8 replies - 1 through 8 (of 8 total)