Page 1 of 1

Error !

Posted: 13 Jul 2008, 07:52
by featherlight
hi every one ... I have this error with phoca .. can someone tell me why ?? how can I solve the problem ??
Stop Thumbnails Creation

Warning: ini_set() has been disabled for security reasons in /home/web/clients/nour.hostarea.org/www/administrator/components/com_phocagallery/helpers/phocagallery.php on line 860

Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 9216 bytes) in /home/web/clients/nour.hostarea.org/www/administrator/components/com_phocagallery/helpers/phocagallery.php on line 881

THANKS !

Re: Error !

Posted: 13 Jul 2008, 14:18
by Jan
Hi,

Warning - Phoca Gallery tries to increase the memory for GD creating of thumbnail...
Error - The ini_set is disabled (warning), and you have not enough memory for creating the thumbnail (error) :(

Jan

Re: Error !

Posted: 13 Jul 2008, 20:04
by featherlight
ok Jan .. thanks for explaining ... but what I have to do now ??? if I decrease the size of pics or change resolution , the problem will be solved ?? :idea:

Re: Error !

Posted: 13 Jul 2008, 21:13
by Jan
You should enable the ini_set function (you or your webhosting provider)

Jan

Re: Error !

Posted: 13 Jul 2008, 23:57
by featherlight
ok thanks Jan !

Re: Error !

Posted: 11 Oct 2008, 22:56
by bers
Found a solution on the Joomla forums that solved both the Thumnail creation problem and the Fatal Error: Allowed memory size...exhausted...
The problem was the memory size settings in the index.php files in Joomla.

"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6144 bytes) in C:\AppServ\www\joomla-1.0.14\administrator\includes\menubar.html.php on line 463"

Solution:

Added the line: “ini_set('memory_limit','40M');” (make it the second line in the file (just below “<?php”))in the following files:

index.php and the index2.php file in the main Joomla root folder, AND,
to the index.php, index2.php, and the index3.php (if you have a 2 and 3) files under the Administrator folder which is under the root folder

Used FTP (FileZilla) Client: dragged file from rightside to “desktop” on left side; rt clk on desktop>open with Notepad; add line; save; then drag back to original file on rightside and overwrite. You may be able to just right click the file on the rightside (server) and edit. For some reason I have to open it from my local hard drive to edit in Notepad.

the "40M" in the new added line is the memory size limit listed in my php info under Joomla backend "help". You can make it a different number.

After these changes I could now access my "Images" (gallery), upload in frontend, and create thumbnails. :D

Re: Error !

Posted: 14 Oct 2008, 12:54
by Jan
If it works, then it is great, but I don't know how this can work because in Phoca Gallery there is the following code:

Code: Select all

// Try to increase memory
	if ($memory < 50) {
	ini_set('memory_limit', '50M');
	$memoryLimitChanged = 1;
}