forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: spinoneuk on August 09, 2017, 09:04:46 PM

Title: Problem with Random files and Last uploads not found error
Post by: spinoneuk on August 09, 2017, 09:04:46 PM
I am having a problem since upgrading to 1.5.46 (from 1.4.x) with the random files and last uploads. when I click on any thumbnail I get a 404 not found error. Any pointers on how to resolve this would be much appreciated. The link to my site is http://www.italianspinone.co.uk/coppermine/index.php.

Linda
Title: Re: Problem with Random files and Last uploads not found error
Post by: ron4mac on August 09, 2017, 11:29:36 PM
It seems to me that your Joomla .htaccess file is doing url rewrites that is affecting your CPG installation
Title: Re: Problem with Random files and Last uploads not found error
Post by: ron4mac on August 10, 2017, 05:23:44 AM
I looked at the failure pattern again and see that it fails only on the home page for random and last upload images. It does not fail when looking at individual categories. It leads me to feel there could be an issue with the amount of server memory allocated for the PHP process execution. You have ~30,000 images and the PHP process may be failing to process them all to sort out what is needed. Look at Information->phpinfo for 'memory_limit'. If the value is something small (like 16M or 32M), it is likely the problem. If so, you'll need to have the configuration changed to allow more memory use.
Title: Re: Problem with Random files and Last uploads not found error
Post by: spinoneuk on August 11, 2017, 04:55:28 PM
Thanks very much for the information. The php server memory is set at 90M so given the number of images I have it's probably best not to use the random or last uploaded.  I will have a look at the Joomla .htaccess too but think the server memory is more likely to be causing the problem.
Title: Re: Re: Problem with Random files and Last uploads not found error
Post by: Αndré on August 18, 2017, 03:10:27 PM
It does not fail when looking at individual categories.

If you're in a category, there's no url rewrite. So I still think it's related to the rewrite rules added by Joomla. Maybe you should temporarily disable them and try if it works as expected then.