problem with HQ pictures problem with HQ pictures
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

problem with HQ pictures

Started by yeaaa, May 28, 2008, 07:25:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yeaaa

i installed coppermine to my host but i found out that i cant uplaod big pictures even if i have space and i have made all the settings correct!when i uplaod them it says that message:::

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 9448 bytes) in /www/yoyohost.com/y/e/a/yeaaa/htdocs/gallery/include/picmgmt.inc.php on line 262

some other times when i upload big pictures eevrything is ok but when i try tosave the picture it doesnt appear the picture!please someone help!

thanks in advance!

Fabricio Ferrero

Support > cpg1.4.x Support > cpg1.4 upload > Topic: Trouble-shooting the upload process.

There it's the FAQ and a direct link for it: http://forum.coppermine-gallery.net/index.php/topic,24088.msg110690.html#msg110690

Hope this helps you...  ;)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

yeaaa

thats helps much!but where is the php.ini and where do i have to paste that code?

Fabricio Ferrero

Read carefully what I wrote or the links I quote. There is no place when it says that you have to paste some code. Indeed, it says
QuoteYou must be the server's administrator to do this.
Are you? If not, you can't change the php ini setting if you are in a shared server.

At last but not leats, did you bother to search this question before posting? I think not. Please, do it the next time.  ;)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

yeaaa

oh!sorry!i had so stress that i had so many pictures and i couldnt upload them!soory! :-\

well, i didnt uploaded the gallery!it was on the "ADDONS" in my host!but i think that i am an administrator!

yeaaa

now the problem is that i cant find the php.ini :-X :-[ :-\

Fabricio Ferrero

You can't ask about 2 issues in the same thread. And this has been answered several times. Please, search it on the forum next time. I know it's easier to pots, but it's not fair for us, the guys who helps you.

Just go to: http://www.your-site.com/you-gallery-folder/phpinfo.php

But, I told you, if you're on shared server you can't modify the settings..
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

yeaaa

am i in a shared server?i think i am not!

just_some_guy

You would have to ask your host to confirm if you are shared or not, if you are allowed to modify php.ini then look at the "Configuration File (php.ini) Path" field in your phpinfo.php. Have you done the steps outlined in the documentation - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble? Also, "host addon" versions (I guess you used fantastico?) are not recommended.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

yeaaa


yeaaa

#10
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.9
  $Source$
  $Revision: 3125 $
  $Author: gaugau $
  $Date: 2006-06-16 08:48:03 +0200 (Fr, 16 Jun 2006) $
**********************************************/

error_reporting (E_ALL E_NOTICE);
define('IN_COPPERMINE'true);
define('PHPINFO_PHP'true);
require(
'include/init.inc.php');

$CONFIG['debug_mode']=0;

if (!
GALLERY_ADMIN_MODEcpg_die(ERROR$lang_errors['access_denied']);

pageheader($lang_cpg_debug_output['phpinfo']);

ob_start();
phpinfo();
$string ob_get_contents();
$string strchr($string'</style>');
$string str_replace('</style>','',$string);
$string str_replace('class="p"','',$string);
$string str_replace('class="e"','class="tableb"',$string);
$string str_replace('class="v"','class="tablef"',$string);
$string str_replace('class="h"','class="tableh2"',$string);
$string str_replace('class="center"','',$string);
ob_end_clean();

print 
'<div align="left" style="overflow:hidden;width:800px;text-align:left;">';
starttable('100%'$lang_phpinfo_php['php_info'], 1);
print 
'<tr><td class="tableb">';
print 
$lang_phpinfo_php['explanation'];
print 
'<br />';
print 
$lang_phpinfo_php['no_link'];
print 
'</td></tr>';
endtable();
print 
'<br />';


print 
$string;
print 
"</div>\n";


pagefooter();
ob_end_flush();

?>


that is the code that is included to php.info!do i have to paste the other code here?

just_some_guy

No, you open the file in your browser and look for the "Configuration File (php.ini) Path"  directive; this will tell you where the php.ini file is. I assume that you have now read the FAQ thread and the documentation posted to you earlier and that you understand that this problem is being caused by a restriction on your server and not in coppermine. Therefore, if you still wish to upload these images that your server currently cannot handle, then you would need to adjust the settings in php.ini as outlined above, or resize the images and upload them. If none of those are suitable then you would need to follow the other step in the FAQ/Documentation and that is to FTP the larger files to your gallery. Also, if you have a look at the Coppermine Home Uploader mod as this would prove a good alternative and could bypass the PHP restriction.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Joachim Müller


Fabricio Ferrero

I think 'yeaaa ' is ahead you devs..  :D :D

yeaaa: If you are using Fantastico, try not to use it... My advise is if you're not sure about what you're doing, just e-mail your web server support and let them do the modification.  ;)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

yeaaa


Joachim Müller

cpg1.4.18 > cpg1.4.9 (by 9 versions)