Question: |
Hello. I have a shop on opencart. When you add a large number of options for the item and try to save this product (save does not work), gives the following error:Notice: Undefined index: points in /home/ben/public_html/admin/model/catalog/product.php on line 131Notice: Undefined index: weight in /home/ben/public_html/admin/model/catalog/product.php on line 175Warning: Cannot modify header information - headers already sent by (output started at /home/ben/public_html/admin/index.php:80) in /home/ben/public_html/system/library/response.php on line 12РќР° the forums found out that there are limitations in the file: php.ini and .htaccess. If so, then what settings for me to ask to remove the error? |
Question: |
The current values of the php.ini:magic_quotes_gpc = Off;register_globals = Off;default_charset = UTF-8;memory_limit = 64M;max_execution_time = 36000;upload_max_filesize = 999M;safe_mode = Off;mysql.connect_timeout = 20;session.use_only_cookies = On;session.use_trans_sid is = Off;session.cookie_httponly = On;session.gc_maxlifetime = 3600;allow_url_fopen = on;;display_errors = 1;;error_reporting = E_ALL;Current values .htaccess# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess.# For any support issues please visit: http://www.opencart.comOptions +FollowSymlinks# Prevent Directoy listing Options-Indexes# Prevent Direct Access to files Order deny,allow Deny from all# SEO URL SettingsRewriteEngine On# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase /RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]RewriteRule ^download/(.*) /index.php?route=error/not_found [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_URI} !.*\\.(ico|gif|jpg|jpeg|png|js|css)RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it.### If you get an \"Internal Server Error 500\" after enabling any of the following settings, restore the # as this means your host doesn`t allow that.# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:# php_flag register_globals off# 2. If your cart has magic quotes enabled, This may work to disable it:# php_flag magic_quotes_gpc Off# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try# php_value upload_max_filesize 999M# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields# php_value post_max_size 999M# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields# php_value max_execution_time 200# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields# php_value max_input_time 200# 7. disable open_basedir limitations# php_admin_value open_basedir none |
Answer: |
Hello . what limits do you require? |
Question: |
I don`t know specifically! Please give me the maximum allowed by the tariff plan, so I wouldn`t exceed. And I`m already slightly upward to increase until the error disappears! |
Answer: |
you have the file .htaccess error, it is in one line, this is wrong. I love it! php file.ini on the account`s life should not, especially with the values that you specified. please specify what specific values You need and we will configure You |
Question: |
And now file .htaccess written correctly?# 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess.# For any support issues please visit: http://www.opencart.comOptions +FollowSymlinks# Prevent Directoy listing Options-Indexes# Prevent Direct Access to files Order deny,allow Deny from all# SEO URL SettingsRewriteEngine On# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase /RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]RewriteRule ^download/(.*) /index.php?route=error/not_found [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_URI} !.*\\.(ico|gif|jpg|jpeg|png|js|css)RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it.### If you get an \"Internal Server Error 500\" after enabling any of the following settings, restore the # as this means your host doesn`t allow that.# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:# php_flag register_globals off# 2. If your cart has magic quotes enabled, This may work to disable it:# php_flag magic_quotes_gpc Off# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try# php_value upload_max_filesize 999M# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields# php_value post_max_size 999M# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields# php_value max_execution_time 200# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields# php_value max_input_time 200# 7. disable open_basedir limitations# php_admin_value open_basedir none |
Answer: |
it does not need a tennis court in the ticket. we see it on the server no, on the server you have it also in one line |
Answer: |
download the original from the distribution |
Question: |
Please check now file .htaccess, because I have equally displayed that I have here sent out above and in the distribution. Now pumped directly from the distribution unchanged. Just renamed with \".htaccess.txt.htaccess\"php Settings make these please:max_execution_time = 200; max_input_time = 200; upload_max_filesize = 256M; memory_limit = 256M; post_max_size = 256M; max_input_vars 5000; |
Answer: |
From all of ukazannogo can do толькоmax_input_vars 5000; |
Question: |
OK. Please do.What about file .htaccess? It is already normal? |
Answer: |
please Wait, Your issue is being dealt with. |
Answer: |
ready max_input_vars 5000; set. |
Question: |
Hello, again. All the previous errors disappeared. Thank You for that. Now option of the product to be added without problems.But, there was a new error (POPs up at the top of the home page): Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /home/ben/public_html/index.php on line 138 |
Answer: |
choose a reason from the developer or in the support forum. |
Question: |
refer to register_globals, the value must be Offпытался to raskomentiruyte value \"# php_flag register_globals off\" in .htaccess but after saving, the site does not load at all |
Answer: |
check out now |
Question: |
on Foum reference value: register_globalsРѕРЅРѕ should be wykluczenia tried to raskomentiruyte in the file .htaccess value \"# php_flag register_globals off\" , but then the site does not load at all |
Answer: |
you have register globals off in .htaccess don`t touch anything |
Question: |
Oh, sorry. browser updated a couple of times, and the error disappeared. Thank you. I`ll check everything else just in case. |
Answer: |
OK |
Answer: |
OK |
Question: |
Now everything is OK. |
Answer: |
OK |