Forum Replies Created

Viewing 15 replies - 571 through 585 (of 786 total)
  • Hello mazharul24online
    As you already said that the site is running properly earlier and problem started today so you should remove the recent changes made or deactivate the plugins you recently installed.You can also use some days old backup if you have to check if problem persist or not.

    Yes, This plugin displays your posts to people’s readers feed in the order you set. And you have to set order of your posts from “Posts=>Re-Order” in admin side.

    Hello haichauBK,
    If you are not able to see images on frontend then its because of various reasons:

    1) Check by activate other theme, if still not show images then follow below steps.
    2) check the permission for the parent file wp-content/uploads is set to 0755.
    3) check htaccess file, is preventing it from showing up properly , if its due to htaccess file then renamed the file with disabled at the end: /public_html/wp-content/uploads/.htaccess.disabled

    Thanks

    1) check .htaccess file
    The first thing you should do when troubleshooting the internal server error in WordPress is check for the corrupted .htaccess file. You can do so by renaming your main .htaccess file to something like .htaccess_old. To rename the .htaccess file, you will need to login to your site using the FTP. Once you are in, the .htaccess file will be located in the same directory where you will see folders like wp-content, wp-admin, and wp-includes.
    Once you have renamed the .htaccess file, try loading your site to see if this solved the problem. Before you move on with other things, make sure that you go to Settings ยป Permalinks and click the save button. This will generate a new .htaccess file for you with proper rewrite rules to ensure that your post pages do not return a 404.
    If checking for the corrupt .htaccess file solution did not work for you, then you need to check your your php.ini file

    2) Increasing the PHP Memory Limit

    Sometimes this error can happen if you are exhausting your PHP memory limit.
    If you are seeing the internal server error only when you try to login to your WordPress admin or uploading an image in your wp-admin, then you should increase the memory limit by following these steps:
    a) Create a blank text file called php.ini
    b) Paste this code in there: memory=64MB
    c) Save the file
    d) Upload it into your /wp-admin/ folder using FTP

    Hope this time I get what you want. You have explained your problem much better this time, thanks for that. It makes my work easy.

    Use this code and hopefully this time you marked your query as resolved ๐Ÿ™‚

    $categories =  get_categories('hide_empty=0&parent=16โ€™);
    
    foreach ($categories as $category)
    {
           $cat_ID = $category->cat_ID;
           $inrCategories =  get_categories("hide_empty=0&parent=$cat_ID");
    
           foreach ($inrCategories as $inrCategory)
           {
             if($inrCategory->count == 0)
             {
              continue;
             }
    
          //Display the sub category information using $category values like
             echo '<h2>'.$category->name.'</h2>';
             echo '<ul>';
    
             foreach (get_posts('cat='.$category->term_id) as $post) {
                 setup_postdata( $post );
                 echo '<li><a href="'.get_permalink($post->ID).'">'.get_the_title().'</a></li>';
             }
             echo '</ul>';
    
             break;
           }
    
    }

    Thanks

    Hello dacano_1990,
    Use following code to add 6 hours to the current_time(‘mysql’) in wordpress

    $time = current_time( 'mysql', $gmt = 0 );
    $time = date("Y-m-d H:i:s",strtotime($time."+6 hour"));

    Hope this will serve your purpose.
    Thanks.

    you can simply echo() or print_r() $pageID to check its value and yes I am able to get all child pages content.

    Is this taking time only after login? can you provide you site url.
    It seems there are so many plugins and themes are active in your site.
    Try to deactivate the unnecessary plugins and themes(if any). Else you can do is,
    check the pagespeed of your site here: https://developers.google.com/speed/pagespeed/insights/
    And follow the instructions there after checkup to speed-up your site.

    Problem may be because multiple categories assigned to post.
    Please explain what you want once more , this time in more intuitive manner so that I get what you want.
    Once I get you completely, I assure you I can solve your problem.
    Please give a detailed explanation of your categories structure. Screenshots and links will help a lot.
    Thanks

    Hey genghiskhano,

    First take a backup of your db. And then create a file just in the parallel of wp-content folder.
    And then paste the following code in your newly created file.

    <?php
    include_once 'wp-blog-header.php';
    $all_users = get_users();
    
    if ( !empty( $all_users ) ) {
     foreach ( $all_users as $user ) {
      if ( !empty( $user ) ) {
       if ( empty( $user->roles ) ) {
        $role = 'subscriber';
        $user_id = wp_update_user( array( 'ID' => $user->ID, 'role' => $role ) );
    
        if ( is_wp_error( $user_id ) ) {
         echo "There was an error for user id:".$user->ID." <br>";
        } else {
         echo 'Successfully updated user with role '.$role.', where user id is: '.$user->ID.'<br>';
        }
       }
      }
     }
    }
    ?>

    Now run this file by https://yoursite.com/created_file.php and wait for a while until the script is running.
    When completed, see if there no error like “There was an error for user id”. And then check your user now.
    Hope, this will do all good for you.

    Forum: Fixing WordPress
    In reply to: Popup loginwindow

    As I’m checking, at home page it does not ask about authentication. So please check for a directory or file like htpasswd or .htpasswd respectively
    somewhere in your directory listing.
    And also check the .htaccess file inside the wp-content or wp-content/themes/ ( if exists ) for something like .htpasswd.
    If not found something then see if there is something like “RewriteRule ./ /index.php [L]”.

    Please Use this Code:

    $categories =  get_categories('hide_empty=0&parent=16โ€™);
    
    foreach ($categories as $category)
    {
           $cat_ID = $category->cat_ID;
           $inrCategories =  get_categories("hide_empty=0&parent=$cat_ID");
    
           foreach ($inrCategories as $inrCategory)
           {
             if($inrCategory->count == 0)
             {
              continue;
             }
    
          //Display the sub category information using $category values like
             echo '<h2>'.$category->name.'</h2>';
             echo '<ul>';
    
             foreach (get_posts('cat='.$category->term_id) as $post) {
                 setup_postdata( $post );
                 echo '<li><a href="'.get_permalink($post->ID).'">'.get_the_title().'</a></li>';
             }
             echo '</ul>';
           }
    
    }

    Hope this will solve your purpose

    Hello,

    please try to delete .htaccess file in root folder of your website after taking backup and try to access the site. The .htaccess might be blocking from seeing your site. If issue persists, you should contact your web host. They can solve the issue to get back to normal site URL.

    Hello HarrisonsWebsites ,
    Please check in your theme custom profile-page.php file exists, if it exists then rename it and try generate password on edit user page or if not exists then try it on different browsers and check generate password on edit user page.

    I checked your site. Stay calm. Everything is going to work fine in a moment.
    Access your dashboard now http://www.olegok.com.md-hk-6.cn.bluehost.com/wp/wp-admin
    Now go to settings->general.
    What you have to do now is just press the save button and let the magic begins.
    Now access your site.
    Hope now you can access everything.
    Thanks

Viewing 15 replies - 571 through 585 (of 786 total)