Forum Replies Created

Viewing 15 replies - 46 through 60 (of 88 total)
  • Hi

    Seems to be some wordpress core files is missing. Please reupload the wp-includes folder and its files.

    (Please use correct wordpress version files)

    (Pleas keep a backup of both files and database)

    Regards
    Sumith Suku

    HI,

    It happened because anything echo or print before the header location call.
    Currently i have modified the code please check it.

    <?php
    	$postTitleError = '';
    	$postcontentError = '';
    	
    	
    	if ( isset( $_POST['submitted'] ) && isset( $_POST['post_nonce_field'] ) && wp_verify_nonce( $_POST['post_nonce_field'], 'post_nonce' ) ) {
    	
    	  if (trim($_POST['postTitle']) === '' || $_POST['postContent'] === '' ) {
    	    if(trim($_POST['postTitle']) === '') {
    	      $postTitleError = 'Please enter a title.';
    	    }
    	    if(trim($_POST['postContent']) === '') {
    	      $postcontentError = 'Please enter a title.';
    	    }
    	  }
    	  else {
    	    $post_information = array(
    	      'post_title' => esc_attr(strip_tags($_POST['postTitle'])),
    	      'post_content' => esc_attr(strip_tags($_POST['postContent'])),
    	      'post_status' => 'publish',           // Choose: publish, preview, future, pending, draft, etc.
    	      'post_type' => 'post'
    	    );
    	    $post_id = wp_insert_post($post_information);
    
    	    ?>
    	    <?php
    	  }
    					   $current_url="https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    						  if(!headers_sent())
    						     {
    								   header('Location: '.$current_url);
    								   exit;
    						    }
    						else
    						    {
    						?>
    							<script language="javascript">
    							window.location.href = "<?PHP echo $current_url;?>";
    							</script>
    						<?php
    						}		
    	  
    	}
    	
    
    	?>

    Regards
    Sumith

    No please revert the changes . if you want to comment out those lines you should comment all lines .

    If you want to comment out /hide the footer copyright section completely please comment the “greatmag_custom_credits();” function call just above it.(lne number:71)

    <?php // greatmag_custom_credits(); ?>

    Hope it will will help you.

    Hi ,

    It may be the reason. I can not assure that this might be the issue. Since i am guessing the reason of the issue from your comments mentioned in the thread.

    We can figure it out the exact issue by performing the trouble shooting steps one by one.

    No risks to edit this file , if any issue occurred you can revert it back. Do not overwrite the(.htaccess) file keep a back up and do the changes

    That is why i said take a backup of files and database. ??

    Regards
    Sumith Suku

    Hi ,

    Please try to increase php max_upload_size and max_execution_time.

    Are you willing to edit the .htaccess file root of the wordpress directory ?

    You can increase the maximum upload size in WordPress. Open or create the .htaccess file in the root folder and add the following code:

    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300

    (please take a backup before make any changes)

    Regards
    Sumith

    Hi ,

    Let me know are you willing do add code in the template file ? Which theme you have used ?

    Regards
    Sumith

    HI ,

    It seems to be issue with cache. Did you activated any caching plugin / server side cache ?

    Regards
    Sumith

    Hi,

    Could you please check whether the page exist or not in admin side. ?

    Also try to update the permalink from the admin side.

    Settings >> Permalinks

    Regards
    Sumith Suku

    Hi ,

    It seems to be issue is in wp core files. Could you please re upload the wp-admin folder ?
    (Please upload the current version files that you are using).

    (Please take a backup of both files and database before make any changes)

    Regards
    Sumith Suku

    Hi ,

    You can get the section from (theme/greatmag/inc/functions/functions-footer.php).
    At bottom of the page you can see the section or you can search for “greatmag_custom_credits()” function.

    Hope it will help you.

    Regards
    Sumith

    Hi,

    Oh ok it is difficult to fixing the issue through the wordpress dashboard.
    Please contact hosting company where you have purchasing the server and domain.
    (Just mail them by explaining the issue.)

    Do you have FTP/Cpanel access ? I mean file access ?

    (No need to paste here any Details)

    Regards
    Sumith

    • This reply was modified 7 years, 5 months ago by sumithsuku11.

    Hi,

    Could you please provide us a screenshot in which section you are updating the margin and padding here i cann`t find out any issue.

    Regards
    Sumith

    Hi,

    Could you please check the issue by disable each plugin one by one, so that we can find out problem is any plugin related or not.

    If its not working try to activate any wordpress default theme.

    (Please take backup of both database and files before make any changes)

    Regards
    Sumith

    Hi,

    seems issue with the PHP Memory Limit. You can increase PHP Memory Limit by addind code in wp-config.php file.

    First you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder

    define( 'WP_MEMORY_LIMIT', '256M' );

    Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’

    (Please take backups before make changes).

    If it not working please contact you hosting provider they can help the same

    Regards
    Sumith Suku

    Forum: Fixing WordPress
    In reply to: submit button

    Are you mentioned about contactform7 plugin ? Could you please more specific

Viewing 15 replies - 46 through 60 (of 88 total)