coppermine 1.3.1c è nuke7.9 coppermine 1.3.1c è nuke7.9
 

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

coppermine 1.3.1c è nuke7.9

Started by denmaster, April 26, 2008, 12:32:35 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

denmaster

Ãîñïîäà íóæíà ïîìîù
Ïî÷èòàâ ôîðóì íåñêîëüêî äíåé îòâåòà íå íàøåë
Äëÿ íà÷àëà êîíôèãóðàöèÿ ãàëåðåè (ðåæèì îòëàäêè)
Advanced debug mode
PHP version: 5.2.5

mySQL version: 5.0.45-community
________________________________________
Image Lib(s)
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled

Server restrictions (safe mode)?
Directive Local Value Master Value
safe_mode Off Off
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
sql.safe_mode Off Off
disable_functions no value no value
file_uploads On On
include_path .:/usr/lib/php .:/usr/lib/php
open_basedir no value no value


email
Directive Local Value Master Value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
SMTP localhost localhost
smtp_port 25 25


Size and Time
Directive Local Value Master Value
max_execution_time 30 30
max_input_time -1 -1
upload_max_filesize 2M 2M
post_max_size 8M 8M




Êîíôèãóðàöèÿ ñåðâåðà

Options asp_tags Allow ASP-style <% %> tags. Off
File Uploads file_uploads Whether to allow HTTP file uploads. On
Paths and Directories include_path Windows: "\path1;\path2" c:\php\includes" .:/usr/lib/php:/usr/local/lib/php
Resource Limits max_execution_time 90
Resource Limits max_input_time 120
Resource Limits memory_limit 64M
File Uploads upload_max_filesize Maximum allowed size for uploaded files. 100M
main zend_optimizer.version 3.3.0

Òåïåðü î ïðîáëåìå :
Ïàïêè ó ìåíÿ òàêèå
10003 è 10186 âåçäå ïðàâà 777
Íå ïîëó÷àåòñÿ äîáàâèòü ôîòî ìàêñèìàëüíûé ðàçìåð 1,8ìá
Ãàëåðåÿ âûäàåò ïðèìåðíî ñëåäóåùèå îøèáîê êàê íà ðàçíûõ ïîñòàõ íåò
Îøèáêà âûãëÿäåò âîò òàê:
Ïðè äîáàâëåíèè ôîòî ïèøåò íåâîçìîæíî îòîáðàçèòü ñòðàíèöó îøèáêà 500
Ïðè îáíîâëåíèè ñòàíèöè âûäàåò òàêîé ìàðàçì:
Êðèòè÷åñêàÿ îøèáêà
Ñêðèïò âûçâàí áåç òðåáóåìûõ ïàðàìåòðîâ

Ôàéë: /home/demaster/public_html/modules/coppermine/db_input.php - Ñòðîêà: 48

Íî êîãäà ÿ  çàõîæó âî âêëàäêó  batch add pictures
 â ïàïêå 10003 âñå åíòè ôîòî åñòü –êîòîðûå íå äîáàâëÿëèñü
Ãäå ïðîáëåìà íå ïîéìó.
×òî ïîñîâåòóåòå




Makc666

Quote from: denmaster on April 26, 2008, 12:32:35 PM
Íå ïîëó÷àåòñÿ äîáàâèòü ôîòî ìàêñèìàëüíûé ðàçìåð 1,8ìá
Ëþáîå ôîòî íå ïîëó÷àåòñÿ äîáàâèòü?

Quote from: denmaster on April 26, 2008, 12:32:35 PM
Ãàëåðåÿ âûäàåò ïðèìåðíî ñëåäóåùèå îøèáîê êàê íà ðàçíûõ ïîñòàõ íåò
Òàê è íå ñìîã ïîíÿòü ñìûñë ýòîãî ïðåäëîæåíèÿ.

Quote from: denmaster on April 26, 2008, 12:32:35 PM
Îøèáêà âûãëÿäåò âîò òàê:
Ïðè äîáàâëåíèè ôîòî ïèøåò íåâîçìîæíî îòîáðàçèòü ñòðàíèöó îøèáêà 500
The full list of possible status codes can be found in the HTTP specification (RFC2616 section 10).
http://www.w3.org/Protocols/rfc2616/rfc2616.txt
Quote10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Google.com -> apache îøèáêà 500

îøèáêà 500 "Internal Server Error"
Quoteîøèáêà 500 "Internal Server Error"

Îøèáêà 500 "Internal Server Error" âîçíèêàåò â ñëó÷àå íåâîçìîæíîñòè çàïóñêà ñêðèïòà, êîòîðûé âû ðàçìåñòèëè íà ñåðâåðå, â ñëó÷àå îøèáîê â ñêðèïòå, à òàêæå â ñëó÷àå êîãäà âû ïîìåñòèëè íåïðàâèëüíóþ èíñòðóêöèþ â ôàéë .htaccess. Ýòîò ñïèñîê ïðè÷èí âîçíèêíîâåíèÿ îøèáêè 500 íå êîíå÷íûé, åñòü åùå ìàññà ïðè÷èí, ïî êîòîðûì ìîæåò âîçíèêíóòü îøèáêà 500. Îäíàêî, óïîìÿíóòûå òðè ñëó÷àÿ âñòðå÷àþòñÿ íàèáîëåå ÷àñòî.

Ðàññìîòðèì ñíà÷àëà ñëó÷àé, êîãäà âû ïîìåñòèëè íåêîððåêòíóþ èíñòðóêöèþ â ôàéë .htaccess. Åñëè âû îøèáëèñü â íàïèñàíèè íàçâàíèÿ íóæíîé äèðåêòèâû èëè ïàðàìåòðîâ ê íåé, â ôàéëå error.log âû íàéäåòå ïðèìåðíî òàêóþ îøèáêó:

[Wed Apr 14 17:01:38 2004] [alert] [client 217.16.16.16] /home/uXXXXX/aaa.ru/www/.htaccess: Invalid command 'DrectoryIndex', perhaps mis-spelled or defined by a module not included in the server configuration

Âåá-ñåðâåð óêàæåò âàì êàêóþ êîíêðåòíî äèðåêòèâó îí ïîñ÷èòàë îøèáî÷íîé - åå íóæíî áóäåò èñïðàâèòü.  äàííîì ñëó÷àå âåá-ñåðâåð ñîîáùèë ÷òî äèðåêòèâû DrectoryIndex îí íå çíàåò. È äåéñòâèòåëüíî - íåò äèðåêòèâû DrectoryIndex, åñòü DirectoryIndex. Èìååò ìåñòî îïå÷àòêà.

Åñëè îøèáêà 500 âîçíèêàåò ïðè îáðàùåíèè ê ñêðèïòó íà ÿçûêå Perl, ðàçìåùåííîìó â êàòàëîãå cgi-bin, íóæíî ïðîâåðèòü ïðàâà äîñòóïà íà ýòîò ñêðèïò. Ïðàâà äîëæíû áûòü 755 (rwxrx-rx). Åñëè ýòî íå òàê, íóæíî èçìåíèòü ïðàâà íà 755 êîìàíäîé chmod 755 script.pl â unix shell èëè âîñïîëüçîâàòüñÿ äëÿ ýòîãî FTP. Íóæíî îòäåëüíî îòìåòèòü - ïðàâà íà ñêðèïòû äîëæíû áûòü óñòàíîâëåíû ñòðîãî â 755.

Ïîæàëóéñòà, ïðîâåðüòå ïðàâèëüíûé ëè ðåæèì ïåðåäà÷è ôàéëîâ ïî FTP âû èñïîëüçîâàëè ïðè çàãðóçêå ñêðèïòà íà íàø ñåðâåð. Âñå ñêðèïòû, ðàâíî êàê è ëþáûå äðóãèå òåêñòîâûå ôàéëû, äîëæíû ïåðåäàâàòüñÿ ïî FTP â òåêñòîâîì (ASCII) ðåæèìå. Åñëè æå áûë èñïîëüçîâàí äâîè÷íûé (Binary) ðåæèì ïåðåäà÷è ôàéëîâ, ñêðèïòû íàâåðíÿêà ðàáîòàòü íå áóäóò.

Åñëè ïîñëå ïðîâåðêè êîððåêòíîñòè óñòàíîâëåííûõ ïðàâ íà ôàéë ñêðèïòà îøèáêà íå èñ÷åçëà, íóæíî èçó÷èòü ïîñëåäíèå çàïèñè â ôàéëå error.log - â íåãî âåá-ñåðâåð ïîìåùàåò âñå ñîîáùåíèÿ îá îøèáêàõ. Òàê âû íàéäåòå ñòðî÷êó âèäà

[Fri Apr 9 15:05:31 2004] [error] [client 217.16.16.16] Premature end of script headers: /home/uXXXX/aaa.ru/cgi-bin/script.pl

Ïåðâîå, ÷òî íóæíî ñäåëàòü åñëè âû ïîëó÷èëè òàêóþ îøèáêó, ýòî ïðîâåðèòü ïðàâèëüíî ëè ñêðèïò âûäàåò HTTP-çàãîëîâêè. Êàæäûé ñêðèïò äîëæåí ñíà÷àëà ïå÷àòàòü ñòðîêó ñ óêàçàíèåì ñîîòâåòñòâóþùåãî Content-type è òîëüêî ïîòîì íåïîñðåäñòâåííî òî, ÷òî óâèäèò ïîëüçîâàòåëü (íàïðèìåð, HTML-êîä). Ïðèìåð ñòðîêè äëÿ âûäà÷è çàãîëîâêà îáû÷íîãî HTML-äîêóìåíòà:

print "Content-type: text/html; charset=windows-1251\n\n";

Åñëè è ïîñëå âûäà÷è ïðàâèëüíûõ çàãîëîâêîâ îøèáêà 500 íå èñ÷åçëà, íóæíî ïðîâåðèòü êîððåêòíîñòü ðàáîòû ñêðèïòà â öåëîì. Äëÿ ýòîãî íóæíî ïîëó÷èòü äîñòóï â unix shell è äàëåå âûïîëíèòü êîìàíäó ïðîâåðêè ñèíòàêñèñà:

> perl -cw script.pl script.pl syntax OK

Åñëè ñêðèïò íàïèñàí ñ îøèáêàìè, íóæíî áóäåò èñïðàâèòü îøèáêè, ðóêîâîäñòâóÿñü ñîîòâåòñòâóþùåé äèàãíîñòèêîé, à òàêæå ïðîâåðèòü ñèíòàêñèñ ñêðèïòà ñíîâà.

Quote from: denmaster on April 26, 2008, 12:32:35 PMÏðè îáíîâëåíèè ñòàíèöè âûäàåò òàêîé ìàðàçì:
Êðèòè÷åñêàÿ îøèáêà
Ñêðèïò âûçâàí áåç òðåáóåìûõ ïàðàìåòðîâ

Ôàéë: /home/demaster/public_html/modules/coppermine/db_input.php - Ñòðîêà: 48

Ìû, ê ñîæàëåíèþ, íå çíàåì, ÷òî ó Âàñ â ôàéëå db_input.php íà 48 ñòðîêå...
Ïîäîáíûå âåùè íóæíî ïðèâîäèòü...

Quote from: denmaster on April 26, 2008, 12:32:35 PM
Ãäå ïðîáëåìà íå ïîéìó.
denmaster, êàê áû Âàì ïîìÿã÷å îòâåòèòü, ÷òîáû Âàñ íå îáèäåòü.
http://forum.coppermine-gallery.net/ - ýòî ôîðóì ïîääåðæêè ãàëåðåè Coppermine.
Ìû, ê áîëüøîìó ñîæàëåíèþ, íå ïîääåðæèâàåò phpnuke, è óæ òåì áîëåå åãî ìîäóëè, êîòîðûå êîãäà-òî è êòî-òî íàïèñàë è çàáðîñèë èõ ïîääåðæêó.
Áûëî áû ïðàâèëüíåå Âàñ îòïðàâèòü çà ïîìîùüþ ê ñîçäàòåëÿì phpnuke, ïîòîìó ÷òî òîëüêî îíè çíàþò, ÷òî îíè òàì íàïèñàëè è ò.ï.
Ê òîìó æå, âåðñèÿ âàøåãî ìîäóëÿ Coppermine â ñîñòàâå phpnuke äèêî óñòàðåëà.

Quote from: denmaster on April 26, 2008, 12:32:35 PM
×òî ïîñîâåòóåòå
Î÷åíü äàâíî, Alex Revo óæå îòâåòèë íà ïîäîáíûé âîïðîñ:
Quote from: Alex Revo on August 14, 2006, 03:42:45 PM
Ïåðåõîäè íà áîëåå íîâóþ âåðñèþ. Íà ýòîé òåáå âðÿä ëè êòî ïîìîæåò. NO NUKE SUPPORT

Ïîýòîìó, èçâèíèòå íàñ, ìû î÷åíü õîòåëè áû Âàì ïîìî÷ü, íî óâû íå â ñèëàõ.