2

I have deployed an existing site to my local server and the admin and site is loading.

However all the css and js files are not found since the CloudFront CDN is not serving the files to my local server. I have no idea why all the CDN urls are not working.

Hence plan B.

  • Since my admin site is not working due to the missing css and js, Does anyone know how I can manually switch off / uninstall the OnePica extension so that I can revert my local copy of the site to reference the local files?

Note that changing the line

<active>true</active> 

to

<active>false</active>

in the module file OnePica_ImageCdn.xml has made no difference.

Any other tips on manually switching this CDN off??

Natacha Beaugeais
  • 1,003
  • 1
  • 11
  • 24

2 Answers2

1

Not sure if you got this resolved but I was able to resolve this by changing the configuration scope in the Magento admin and changing the base media url. For me, the cdn url was removed from the Default Config scope but still existed in the "Main Website" config scope. Here are detailed steps:

  1. Navigate to System -> Configuration
  2. Change Configuration Scope to "Main Website" from "Default Config"
  3. Click on the Web tab
  4. Click open the Unsecure and Secure sections
  5. Change the text in the "Base Media Url" field to "{{unsecure_base_url}}media/" to the unsecure section and "{{secure_base_url}}media/" to the secure section.
  6. Save
0

Check the media url setting in the Magento admin.

Mukesh
  • 7,630
  • 21
  • 105
  • 159
  • All media urls are correct - for some reason the css and js are served blank (don't seem to exist), as I am coding the site I need to have the CDN switched off, so I prefer to switch off the CDN locally for now. – Natacha Beaugeais Dec 04 '14 at 14:28