Fatal error: allowed memory size when after using enqueue_script

The problem is the de-registering the core-bundled version of jQuery, and re-registering using your own, arbitrary version. Do not de-register core-bundled versions of scripts (especially jQuery) in order to register arbitrary/custom versions of those scripts. Doing so can and will cause breakage and unintended consequences. If you’re doing so in order to cause your custom … Read more

Dump a linux process’s memory to file

I’m not sure how you dump all the memory to a file without doing this repeatedly (if anyone knows an automated way to get gdb to do this please let me know), but the following works for any one batch of memory assuming you know the pid: $ cat /proc/[pid]/maps This will be in the … Read more

In Linux, what is the difference between “buffers” and “cache” reported by the free command?

The “cached” total will also include some other memory allocations, such as any tmpfs filesytems. To see this in effect try: mkdir t mount -t tmpfs none t dd if=/dev/zero of=t/zero.file bs=10240 count=10240 sync; echo 3 > /proc/sys/vm/drop_caches; free -m umount t sync; echo 3 > /proc/sys/vm/drop_caches; free -m and you will see the “cache” … Read more

Memory Management when developing plug-ins

You could try to tackle this problem in blocks of posts instead of all of them at the same time, you are currently loading all the posts into the memory and then you query the database using these posts which isn’t terribly efficient. You could get the total amount of post, and then query them … Read more

Dashboard memory overload problem

At the top of your wp-config.php you add define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’); this will work only in back-end and do not increase memory in front-end. If this doesn’t work in your site, you can also add this define(‘WP_MEMORY_LIMIT’, ‘256M’);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)