ERR_TOO_MANY_REDIRECTS Error on multisite WordPress on Ningx

I am using multisite WordPress on Nginx and there is too many redirect issue on all WordPress wp-admin pages excluding the main site wp-admin page. Ningx config is below: upstream php-handler-https { server 127.0.0.1:9000; #server unix:/var/run/php5-fpm.sock; } server { listen 443 ssl default_server; server_name _; #server_name wordpress.example.com; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; root /var/www/html/; index index.php;…

Details

How to clear memory on each execution?

I have something like this: <?php ini_set(‘max_execution_time’, 0); ini_set(‘memory_limit’, ‘1024M’); //require_once ‘../../tabkadeh/error_reporting.php’; function setName($name,$photoName, $new_file) { var_dump($new_file); require_once ‘files/lib/WideImage.php’; require_once ‘FarsiGD.php’; $left = ‘+50’; $top = ‘+400’; $bg = WideImage::load($photoName); //$final= $bg ->resize(400, 400); $final= $bg; $canvas = $final ->getCanvas(); //$canvas->useFont(‘./Yekan.ttf’, 200, $final->allocateColor(000, 000, 000)); $new_name=(new FarsiGD)->persianText($name,’fa’, ‘normal’); $canvas->useFont(‘./Ray-ExtraBlack.ttf’, 40, $final->allocateColor(34, 84, 109)); $canvas->writeText(“left $left”,…

Details