Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Fontis Australia Magento extension
 
ozthunderstorm
Jr. Member
 
Total Posts:  7
Joined:  2011-08-30
 

Hello,

I am trying to set up the Fontis Australia Extension in Magento 1.5.0.1 with no luck. I have tried a couple of options discussed in the forums but nothing seems to work and i get the following error:

Checking dependencies of packages
Installing package community/Fontis_Australia 2.0.7

CONNECT ERROR: Can’t write to file: /home/xxxx/public_html/mtbaimbridge/store/downloader/.cache/community/Fontis_Australia-2.0.7/app/design/adminhtml/default/default/template/fontis/australia/system/config/form/field/array_dropdown.phtml

I have to have this working for the site to go live next week so if anyone can help id be very greatfull

Thanks
Brett

 
Magento Community Magento Community
Magento Community
Magento Community
 
duffybelfield
Moderator
 
Avatar
Total Posts:  119
Joined:  2008-08-14
 

Have you reset your permissions?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ElectronicB
Jr. Member
 
Total Posts:  4
Joined:  2011-10-09
 

This website is giving us very Useful information, many thanks to the author by . It is puzzling to me now, but in general, the usefulness and importance is overwhelming. Very much thanks again and good luck!  Australia Extension

 
Magento Community Magento Community
Magento Community
Magento Community
 
another_eye
Jr. Member
 
Total Posts:  1
Joined:  2011-06-29
 

in \downloader\lib\Mage\Archive\Abstract.php

Near line 43:

protected function _writeFile($destination$data)
    {
        
if(false === file_put_contents($destination$data)) {
            
throw new Mage_Exception("Can't write to file: " $destination);
        
}
        
return true;
    
}

Change to:

protected function _writeFile($destination$data)
    {
        $destination 
preg_replace('/[^(\x20-\x7F)]*/',''$destination)
        if(
false === file_put_contents($destination$data)) {
            
throw new Mage_Exception("Can't write to file: " $destination);
        
}
        
return true;
    
}

This should fix your connect downloader to install the Fontis extension.

 
Magento Community Magento Community
Magento Community
Magento Community
 
passionj
Jr. Member
 
Total Posts:  1
Joined:  2011-06-04
 

Thanks a bunch this has worked for me on 1.6.0 for Fontis Australia

 
Magento Community Magento Community
Magento Community
Magento Community
 
lucas_obrien
Jr. Member
 
Total Posts:  5
Joined:  2011-05-19
 
passionj - 04 November 2011 09:12 PM

Thanks a bunch this has worked for me on 1.6.0 for Fontis Australia

I was hoping someone would be able to confirm if the above is correct to have a stable installation of the Fontis extension in 1.6? 

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
leighb0103
Jr. Member
 
Total Posts:  1
Joined:  2012-06-01
 
another_eye - 30 October 2011 07:13 PM

in \downloader\lib\Mage\Archive\Abstract.php

Near line 43:

protected function _writeFile($destination$data)
    {
        
if(false === file_put_contents($destination$data)) {
            
throw new Mage_Exception("Can't write to file: " $destination);
        
}
        
return true;
    
}

Change to:
protected function _writeFile($destination$data)
    {
        $destination 
preg_replace('/[^(\x20-\x7F)]*/',''$destination)
        if(
false === file_put_contents($destination$data){
            
throw new Mage_Exception("Can't write to file: " $destination);
        
}
        
return true;
    
}

This should fix your connect downloader to install the Fontis extension.

^This will fix all your issues on 1.6 smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Curtise
Jr. Member
 
Total Posts:  10
Joined:  2010-01-05
Sydney, Australia
 
another_eye - 30 October 2011 07:13 PM

in \downloader\lib\Mage\Archive\Abstract.php

Near line 43:

protected function _writeFile($destination$data)
    {
        
if(false === file_put_contents($destination$data)) {
            
throw new Mage_Exception("Can't write to file: " $destination);
        
}
        
return true;
    
}

Change to:
protected function _writeFile($destination$data)
    {
        $destination 
preg_replace('/[^(\x20-\x7F)]*/',''$destination)
        if(
false === file_put_contents($destination$data){
            
throw new Mage_Exception("Can't write to file: " $destination);
        
}
        
return true;
    
}

This should fix your connect downloader to install the Fontis extension.

Thank you for sharing solved my problem. I owe you a beer!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top