Fatal error: Allowed memory size of 41943040 bytes exhausted

Rate this post

1) It may be possible to raise your memory limit, as in the thread that mbrsolution links to – add this to your wp-config.php file:
define(‘WP_MEMORY_LIMIT’, ’64M’);

2) You could ask your web hosting company to either raise the limit, or justify it. There’s really no justification for it though – as I say, they’re easily in the bottom 1% there.

3) More technical is to go through your plugins one-by-one to find out which is the one using up most memory. Just because UpdraftPlus tips it over the limit doesn’t indicate that it’s the one using most memory – it just means that when UD gets its turn to run, it uses more memory than what’s left of the 40Mb; but “what’s left” at that stage could be anything. You can try disabling all your other plugins, and looking at the UpdraftPlus page, in the “expert” section (down the bottom) – there, it has a counter of memory used. Re-enable your plugins one-by-one and see which one causes the biggest increase in usage. I’d not really recommend spending huge amounts of time on that, though – it’d be more efficient to pursue 1) and 2) and if they won’t raise it for you, switch to a new web hosting company.

Delete all posts from wordpress by phpmyadmin

Rate this post

The original is ‘post’ in the sense that it is the first db record created for that post, and always has the same ID. As you make revisions, WP continually updates that original record and keeps it current. It also periodically makes copies of the post record, marking them ‘revision’ and giving them unique IDs.

The only relationship between posts and revisions from a db standpoint is that the revisions store the ID of the original (and current) post record in the ‘post_parent’ field. So, if you wanted to see all revisions of post ID 22, sorted by date, you would use a query like this:

SELECT * FROM wp_posts WHERE post_type=’revision’ and post_parent=22 ORDER BY post_date DESC;

The revisions are only there as a backup. The most current version of a post is always stored in the original record. So it does no harm to purge the database of revisions, using a query like this:

DELETE FROM wp_posts WHERE post_type=’revision’;

Going back to your first question, you can retrieve all the info for the current posts simply by querying on post_type=’post’, like this:

SELECT * FROM wp_posts WHERE post_type=’post’ and post_status=’publish’ ORDER BY post_date DESC;

Fix wamp orange to green

Rate this post

Simple fix :

Just goto apache > httpd.conf and make change the port from 80 to 8080

and it will be fixed.

Here is my code I get on my httpd.conf

Listen [::0]:8080

How to get WordPress TwentyTwelve comments.php to work on another theme?

Rate this post


remove the callback code from the wp_list_comments() code in comments.php:

change this line:

<?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?>


<?php wp_list_comments( array( 'style' => 'ol' ) ); ?>

or alternatively, also copy the function twentytwelve_comment() from Twenty Twelve’s functions.php, and add it into your theme’s functions.php; code below:

 * Template for comments and pingbacks.
 * To override this walker in a child theme without modifying the comments template
 * simply create your own twentytwelve_comment(), and that function will be used instead.
 * Used as a callback by wp_list_comments() for displaying the comments.
 * @since Twenty Twelve 1.0
function twentytwelve_comment( $comment, $args, $depth ) {
	$GLOBALS['comment'] = $comment;
	switch ( $comment->comment_type ) :
		case 'pingback' :
		case 'trackback' :
		// Display trackbacks differently than normal comments.
	<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
		<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p>
		default :
		// Proceed with normal comments.
		global $post;
	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
		<article id="comment-<?php comment_ID(); ?>" class="comment">
			<header class="comment-meta comment-author vcard">
					echo get_avatar( $comment, 44 );
					printf( '<cite class="fn">%1$s %2$s</cite>',
						// If current post author is also comment author, make it known visually.
						( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''
					printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
						esc_url( get_comment_link( $comment->comment_ID ) ),
						get_comment_time( 'c' ),
						/* translators: 1: date, 2: time */
						sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )
			</header><!-- .comment-meta -->

			<?php if ( '0' == $comment->comment_approved ) : ?>
				<p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>
			<?php endif; ?>

			<section class="comment-content comment">
				<?php comment_text(); ?>
				<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class="edit-link">', '</p>' ); ?>
			</section><!-- .comment-content -->

			<div class="reply">
				<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
			</div><!-- .reply -->
		</article><!-- #comment-## -->
	endswitch; // end comment_type check

Can I display my Alexa rank on my site?

Rate this post

Yes, using an Alexa widget like this you can display your site’s Alexa rank on your site:

Just change yoursite.com to your website in two places in the HTML snippet below, and then copy and paste it into your website’s HTML:

<a href=”http://www.alexa.com/siteinfo/yoursite.com”><script type=”text/javascript” src=”http://xslt.alexa.com/site_stats/js/t/a?url=yoursite.com”></script></a>

Here is a widget that displays both your site’s Alexa rank and Sites Linking In count:

<a href=”http://www.alexa.com/siteinfo/yoursite.com”><script type=”text/javascript” src=”http://xslt.alexa.com/site_stats/js/s/a?url=yoursite.com”></script></a>


Note that our widgets do not support https.

How to hide PHP Warnings and Notices in WordPress

Rate this post

From time to time a user comes to me and says “I see some PHP notices and warnings on my page”.

Most of the time these are nothing to worry about (though the plugin/theme developer should know about these so that they may fix them in a future release). PHP warnings and notices are nothing to worry about on a production site most of the time.
Some of these can even be generated because the developer has to keep compatibility with older versions of WordPress as well as older PHP versions.

The solution:

If you simply set WP_DEBUG to false in your wp-config.php file you should be fine. These don’t affect your site in any way.

However, the problem is that some times the above does not work.
That can happen most times on cheap shared hosts that force displaying PHP warnings and notices.
In that case, you can replace this line from your wp-config.php file:

define('WP_DEBUG', false);

with this:

ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

I hope that helps someone out there!

আসুন জেনে নেই SEO Techniques গুলোর নাম এবং সংঞ্জা

Rate this post

পোস্ট ২ — আসুন জেনে নেই SEO Techniques গুলোর নাম এবং সংঞ্জা

On-page SEO techniques – Describe parameters to be optimized within a web page like title and content.

Off-page SEO techniques – Describe outside parameters to be optimized like external links.

Black hat SEO techniques – Describe methods not to be followed for improving search engine ranking like creating spam links.


টুলসগুলো দিয়ে চেক করুন আপনার ওয়েবসাইট এর বর্তমান SEO এর অবস্থা

Rate this post

এই টুলসগুলো দিয়ে চেক করুন আপনার ওয়েবসাইট এর বর্তমান SEO এর অবস্থা ।


এর পরবর্তী পোস্ট আসবে , woorank base করে আমাদের একটা ওয়েবসাইট আমরা কিভাবে অপটিমাইজ করছি তার উপর :)

Don’t forget to read this too :


চোখ রাখুন , সাথে থাকুন :)

How to Check Your Motherboard Model Number on Your Windows PC

How to Check Your Motherboard Model Number on Your Windows PC 5.00/5 (100.00%) 1 vote

Use this command in Command Prompt :

wmic baseboard get product,Manufacturer,version,serialnumber

Direct Access to this location is not allowed.

Rate this post

Have a look in the index.php file for the tempate.  If it says

defined( ‘_VALID_MOS’ ) or die( …

and legacy mode is off, this will cause this error.

Change _VALID_MOS to _JEXEC and you should be ok to continue.

Hope this helps.

« Older posts

Copyright © 2015 Webdesigncr3ator

Theme by Team Webdesigncr3atorUp ↑