Magento with APC enabled - can not download product files - magento

I have a Magento (CE version 1.9) site run on NGINX + PHP_FPM. Everything worked well.
I installed and configured APC (3.1.15-dev) and it worked well BUT there is just a problem: Customers loged-in and download downloadable product file and it does not return product.zip file, instead php file with octet stream.
When I change apc.enabled=1 to ;apc.enabled=1 in apc.ini, restart PHP_FPM, then when customer download the file, it return the correct file product.zip.
Did anyone get this problem? Please help me since I can not found the solutions.
apc.ini
extension = apc.so
apc.enabled=1
apc.shm_size=64M
apc.shm_strings_buffer=0
apc.ttl=7200
apc.user_ttl=7200
apc.mmap_file_mask=/tmp/apc.XXXXXX
Magento local.xml
<cache>
<backend>apc</backend>
<prefix>MySITE_</prefix>
</cache>
Many Thanks!

Related

Magento 2.2.1 Checkout 500 (Internal Server Error)

Using Magento 2.2.1 freshly installed
I use php 7.1.1
I am using Adyen payment gateway
https://github.com/Adyen/adyen-magento2
the extension developer says its not due to their extension. I have enabled every php extension on server side thats needed. So now it comes to magento 2
Tried to checkout as guest and then I see
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
https://{siteurl.com}/rest/default/V1/guest-carts/1a41b8daeba4d90df7c5dca2085dd732/payment-information
When I try to use COD or Check the checkout process is smooth. Haven't tried with paypal or others
**Can you please help ??
If you need me to perform any steps in either server side or magento 2 please tell me the steps on what to do I will post the output here**
I have solved the issue
Solution : I used a third party extension and installed it through magento 2 admin directly which resulted the extension was not installed properly. I have used composer to install the extension and it solved the issue
I work for Adyen.
It is indeed required to install the Adyen plugin on Magento through Composer. This will include all the dependencies and prevent the issue that is shown here.
For further references you could visit our Github page:
https://github.com/Adyen/adyen-magento2
Hope that it helps!
For the unexpected error (e.g 500), we should enable error reporting on the bootstrap:
app/bootstrap.php
ini_set('display_errors', -1) // enable this line remove # from start.
you will get the real issue on screen

Magento 1.9.3.1 Upgrade Error

I have upgraded Magento to 1.9.3.1 from 1.9.1.1 from magento connect manager and after successful up-gradation I got this error:
Exception during cache and session cleaning
When I access my site I got this error:
You have been blocked from accessing this site. If you feel this is a
mistake please email abuse#securedserverspace.com
Which is I think is not a Magento error but more of a server error anyways whatever it is how do I fix it? Please help.
Case 1:
You have to consult with hosting provider.
Case 2: you have doubt regarding code then you can update via following method.
Update to Magento 1.9.3.1 - Via FTP -
1) Enable Maintenance Mode by creating a file in root magento folder called maintenance.flag
2) For admin (you) to have access to the frontpage while you perform upgrade (check everything as it should be)
Find this
$maintenanceFile = 'maintenance.flag';
Add following to line 49 and 50
$ip = $_SERVER['REMOTE_ADDR'];
$allowed = array('Your Ip Address');
Where the ip-address is your IP. Replace line 59 should be
if (file_exists($maintenanceFile)) {
With
if (file_exists($maintenanceFile) && !in_array($ip, $allowed)) {
3) Disable Compiling and also disable cache. Remember to flush cache.
4) Unpack the Magento 1.9.3.1 files on your computer and upload them to your root.
5) Refresh your webpage when the files are uploaded. You can see in Admin section that the magento
has been updated.
NB! Remember to check for upgrades for your third party modules / themes if you have this. This will only upgrade magento.
Also a good idea before uploading the files is to delete the error_log in your root folder and logs under var/log. This way you can see what errors may occur when you have done the proceeding.

Got an error in magento connect for installing any extension

In my store have magento community edition - 7.1.
I try to install extension using magento store, but I got an error like this for all type of extensions
community/Dropifi_Dropificontactwidget: Could not resolve host: connect20.magentocommerce.com; Host not found
I placed this key for install magento
http://connect20.magentocommerce.com/community/Dropifi_Dropificontactwidget
http://connect20.magento-commerce.com/community/Dropifi_Dropificontactwidget
Help me to get a result for this issue.
Thanks
I had the same problem ("CONNECT ERROR: Unsupported resource type") while upgrading a 1.6 magento on PHP 5.5.
The unpack function (http://php.net/manual/en/function.unpack.php) has changed.
In downloader/lib/Mage/Archive/Tar.php, the line
const FORMAT_PARSE_HEADER = 'a100name/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100symlink/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155prefix/a12closer';
must be replaced by:
const FORMAT_PARSE_HEADER = 'Z100name/Z8mode/Z8uid/Z8gid/Z12size/Z12mtime/Z8checksum/Z1type/Z100symlink/Z6magic/Z2version/Z32uname/Z32gname/Z8devmajor/Z8devminor/Z155prefix/Z12closer';
This was not an issue specific to you. Today, the Magento Connect server experienced an outage which prevented any of the community extension keys from working.
The Connect server appears to be online now, so try again and it should work.
Source: https://twitter.com/magento/status/384805097315659776
Helpful Note:
You can download extension packages directly by using the following tool:
http://freegento.com/ddl-magento-extension.php
Just paste in your Magento extension keys and Submit. A downloadable link will appear for you to obtain the package.
i have got this error then try following steps
first you can disable all cache
second after install extension then clear all cache and logout and login

My magento module not approved as extension

My Free Community Extension is not approved by magento commerce.
you can get my packaged zip file of my extension from the following url:
202.65.129.178/jungleextn/Junglee_Exports-1.0.0.tgz
when i install this extension with the packaged zip file in magento admin connect manager it gets inatlled and working fine. So i posted it in magento connect. but they are not accepting it. i think there is an issue with extension key, channel, version numbers.
plz can any one help me out.
You may ask the Magento support team they can help you probably.
( http://www.magentocommerce.com/support/overview )
else ( http://www.magentocommerce.com/bug-tracking )
Edit:
Found something ... Use a different name for your Upload. The Package Info Name used when creating the package should be the same as the Extension name when uploading.

Magento Bug - Illegal scheme supplied, only alphanumeric characters are permitted

I have installed magento-1.6.1.0 on my wamp local server. And I am getting this error after installation
Illegal scheme supplied, only alphanumeric characters are permitted
How to overcome this problem??
have your base url with full URI Schema : http://your.url or https://your.url and note that you cant use http://localhost as cookies wont work so name your host something else like local.host or whatever suits you best
There is a patch which seems to address this issue in Magento 1.6.1.0 for development purposes, at least to allow me to do some basic testing using a local installation. The patch and instructions are available from http://www.danneh.org/2011/11/bug-magento-1-6-1-0-affecting-development-sites-base_url/
I have tried this on a local installation I'm using for some experiments: both the patch and instructions worked first time on my Macbook (I stopped and restarted the web server after applying the patch and clearing the cache folder, then refreshed the start page in my web browser).
FWIW: I've also added another hostname because of the earlier answer to this question - the site loads correctly for both http://localhost/magento/ and http://myotherhostname/magento/
PS: I've made various changes to the default installation and I'm not planning to use it for production purposes.
I had the similar issue.In error report i was getting following.
a:5:{i:0;s:67:"Illegal scheme supplied, only alphanumeric characters are permitted";i:1;s:669:"#0 D:\wamp\www\mymagento\app\code\core\Mage\Core\Model\Store.php(726): Zend_Uri::factory('localhost/tevet...')
#1 D:\wamp\www\mymagento\app\code\core\Mage\Core\Controller\Varien\Front.php(313): Mage_Core_Model_Store->isCurrentlySecure()
#2 D:\wamp\www\mymagento\app\code\core\Mage\Core\Controller\Varien\Front.php(161): Mage_Core_Controller_Varien_Front->_checkBaseUrl(Object(Mage_Core_Controller_Request_Http))
#3 D:\wamp\www\mymagento\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#4 D:\wamp\www\mymagento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#5 D:\wamp\www\mymagento\index.php(87): Mage::run('', 'store')
#6 {main}";s:3:"url";s:10:"/mymagento/";s:11:"script_name";s:19:"/mymagento/index.php";s:4:"skin";s:4:"demo";}
url which I had provided in core_config_data table in database was like following
web/unsecure/base_url localhost/mymagento/
web/secure/base_url localhost/mymagento/
When I changed the urls to following
web/unsecure/base_url http://localhost/mymagento/
web/secure/base_url http://localhost/mymagento/
problem got solved.
This is probably a bug in Magento 1.6.1.0, see here:
http://www.magentocommerce.com/bug-tracking/issue?issue=12530
with topic:
http://www.magentocommerce.com/boards/viewthread/263751/#t357355
I was receiving this error because I didn't have http:// in my base url
Have same problem on Wamp and XAMPP., nearly give up.
Finally find the solution, Magento 1.6 can not work properly with WAMP 2.1 and XMAPP 1.7, I guess it caused by Mysql version, not sure.
but after I change WAMP to 2.0 i, everything is fine. Magento 1.6 is running well.
Download WAMP2.0i : http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/WampServer2.0i.exe/download
I failed to install it on Chrome, but success on firefox.
Good Luck.
Install Magento with Firefox, I also got the problem on IE. After installation with Forefox, it worked fine.
http://www.danneh.org/2011/11/bug-magento-1-6-1-0-affecting-development-sites-base_url/
This fixed my problem. MAMP and magento 1.9.0.
I downloaded the tar file, and delete all cookies in chrome, then delete all files under var/cache. Be sure you have more than 1 GB of space on your disk when you refresh the page and go to localhost/magento/
PS: in my core_config_data table, I have http://localhost/magento/ as my base_url (change 2 rows) don't use https, because I couldn't solve the problem (takes a lot of time) with SSL configuration on MAMP.

Resources