Forum

Thread tagged as: Problem, Configuration

Admin keeps logging me out.

Hi,

Has any else experienced a problem where by the admin panel keeps logging you out? I can be changing regions, adding assets anything really.

It looks as though the session is timing out. This is also happening on a live server hosted else where, when a customer using a different computer is working, so not sure if it hosting related.

I have plans to upgrade all my clients to the latest version over the weekend.

Perch: 2.8.4, PHP: 5.4.41, MySQL: 5.5.43, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_forms (1.8.3), perch_shop_paypal (1.2.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_shop_paypal', 'perch_forms', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch
PERCH_CORE: /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core
PERCH_RESFILEPATH: /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 8M, Memory: 128M, Total max file upload: 8M
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro
HTTP_HOST: ttfitness.sitedevelopment.pro

Cheers

Dennis Pickworth

Dennis Pickworth 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you logging in with the same user account?

Yes. At 1st I thought it may be down to the customer logging in as well, so I create some new accounts on all the instances of perch. But this still happens.

If it was just my machine I wouldn't mind. No one uses my logins to perch either except me. Different browsers are used in different hosting machines.

Weird.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you opening multiple tabs?

Yes. I usually have multiple tabs open. I cannot make any comment about my clients.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you open the control panel in multiple tabs it can look like a session hijack attack and log you out.

Ok. I will get the client to run in one tab and I will try the same. I will get back to you on this.

Cheers Dennis

Drew McLellan

Drew McLellan 2638 points
Perch Support

Thanks!

Ok. I have had some confirmation from a client that this is still happening.

He only has the perch admin open and is trying to upload images into the asset bucket, for his store.

Anything else you need me to ask them?

Cheers

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is there anything being logged in your server error log?

Looking in the logs i am getting the following;

[Mon Jun 15 23:08:15 2015] [warn] [client 92.6.142.98] mod_fcgid: stderr: PHP Warning: POST Content-Length of 18476044 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 

Which look like the images he is trying to upload are to large?

Also getting a lot of these;

[Mon Jun 15 23:08:15 2015] [warn] [client 92.6.142.98] mod_fcgid: stderr: PHP Warning: POST Content-Length of 18476044 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 

There is no media folder, So I will look at the scripts for this.

Here is the complete block of errors/warns in the log. I refuse to believe that the client is being logged out because they are trying to upload large images. As this is also happening on another server and they are only altering text.

[Tue Jun 16 09:58:59 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP Warning: POST Content-Length of 14674312 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 09:59:52 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP Warning: POST Content-Length of 19184709 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4353 bytes) in /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core/lib/PerchImage.class.php on line 505, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP Stack trace:, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP 1. {main}() /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core/apps/assets/upload/index.php:0, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP 2. include() /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core/apps/assets/upload/index.php:22, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP 3. PerchFieldType_image->get_raw() /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core/apps/assets/modes/upload.pre.php:31, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP 4. PerchImage->resize_image() /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core/lib/PerchFieldTypes.class.php:996, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP 5. PerchImage->resize_with_gd() /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core/lib/PerchImage.class.php:282, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:04:26 2015] [warn] [client 176.35.53.205] mod_fcgid: stderr: PHP 6. imagecreatefromjpeg() /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/perch/core/lib/PerchImage.class.php:505, referer: https://ttfitness.sitedevelopment.pro/perch/addons/apps/perch_shop_paypal/edit/?id=12 
[Tue Jun 16 10:08:55 2015] [error] [client 176.35.53.205] File does not exist: /var/www/vhosts/sitedevelopment.pro/ttfitness.sitedevelopment.pro/media, referer: https://ttfitness.sitedevelopment.pro/product.php?item=t-shirt-cool-breathe-tapered-sports 

Cheers Dennis

Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like you could be exceeding the PHP post_max_size setting.

That's not necessarily files, but everything that gets posted with the form.