Script Error

Статус
В этой теме нельзя размещать новые ответы.

vave

Полезный
Регистрация
22 Июн 2007
Сообщения
466
Реакции
16
такая проблемка, что на локалке я могу загружать фото любых размеров, а при загрузки на хостинг фотографий свыше 500кб скрипт выдаёт ошибку:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12000 bytes) in /home/fymb7svp/public_html/admin/cp-includes/inc-functions.php on line 141

как это можно исправить? в настройках пхп на сервере, написано что закачка одного файла до 100мб (File Uploads upload_max_filesize Maximum allowed size for uploaded files. 100M) это конфигурации PHP

редактировать php.ini не могу..

что делать?
 
посмотри через phpinfo(); значение upload_max_filesize которое прописанно в php.ini
 
upload_max_filesize Maximum allowed size for uploaded files. 100M

и не знаю что делать:nezn:
 
upload_max_filesize Maximum allowed size for uploaded files. 100M

и не знаю что делать:nezn:

если нет доступа к php.ini можешь через htaccess

пропиши

php_value upload_max_filesize 200M

в место 200M - можешь поставить любое значение...

а вобще кинь полность распечатку phpinfo

Добавлено через 6 минут
у тебя скорее всего проблема с memory_limit

Устанавливает максимальное количество памяти в байтах, которое скрипт может занимать. Это предотвращает поглощение неправильно написанными скриптами всей доступной памяти сервера

Если лимит памяти включён в скрипте конфигурации, memory_limit также влияет на загрузку файлов. В общем, memory_limit должен быть больше, чем post_max_size

Добавлено через 8 минут
допиши в .htaccess строки:
Код:
php_value upload_max_filesize 200M
php_value post_max_size 200M
php_value max_execution_time 60
 
Language 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 60
Resource Limits max_input_time 60
Resource Limits memory_limit 64M
Data Handling register_globals You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of. On
Language Options safe_mode Off
main session.save_path where N is an integer. Instead of storing all the session files in /path, what this will do is use subdirectories N-levels deep, and store the session data in those directories. This is useful if you or your OS have problems with lots of files in one directory, and is a more efficient layout for servers that handle lots of sessions. NOTE 1: PHP will not create this directory structure automatically. You can use the script in the ext/session dir for that purpose. NOTE 2: See the section on garbage collection below if you choose to use subdirectories for session storage /tmp
File Uploads upload_max_filesize Maximum allowed size for uploaded files. 100M
main zend_optimizer.version 3.3.3
 
ты пробовал в .htaccess прописать что я последнее написал?
 
загрузил .htaccess
и теперь выводит ошибку

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@server.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Добавлено через 3 минуты
использую этот хостинг
_http://www.webhostingpad.com/
написано всё анлимитэд а на самом деле даётся 10гб пространства, и 100гб трафика..
 
загрузил .htaccess
и теперь выводит ошибку

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@server.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

значит без вариантов, настройки сервера не позволяют, или меняй хостинг или способо передачи.
 
я бы с радостью поменял хостинг но он оплачен клиентом на 3 года вперёд:confused:
с учётом что посоветовал его я)) реклама UNLIMITED цепляет:ah:
 
я бы с радостью поменял хостинг но он оплачен клиентом на 3 года вперёд:confused:
с учётом что посоветовал его я)) реклама UNLIMITED цепляет:ah:

тогда все вопросы к суппорту , они просто обязанны отрабатывать свои деньги, я думаю это не сложный вопрос
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху