0

Head scratcher.

I have 3 drupal 7 seven websites all hosted on the same vps server. On my dev server which is an ubuntu 14.04 LAMP installation, all 3 sites work perfectly. However, after uploading to the production server on all 3 sites various javascript based aspects stop working.

Things that stop working on the production server are:

  1. CKEDITOR will not load - if I try to edit a page on the production server, the editor doesn't load, all I get is a white space where the editor should be. If I switch text formats to filtered html full html (no ckeditor) everything works perfectly.

  2. Colorbox overlay stops working - I am using the Colorbox module to display pdf files in lightbox overlay. On my dev server everything is perfect and the pdf's display as design. However on the production serever the pdf's do NOT load in a lightbox at all. They simply load in the browser as if I never installed the Colorbox module.

Solutions that have tried, but did NOT fix the problem:

  1. Flushed Cache reloaded pages
  2. Re-created & Re-uploaded db a number of times
  3. Re-upload the Drupal 7 code base and the Drupal /sites/all/ folder via ftp
  4. I've run the update script after uploading db's
  5. I tried disabling and reinstalling the colorbox module on the production server

NOTE: In a rush to upload I did commit a "drupal sin" and forgot to put the site in maintenance mode the very first time that I uploaded the DB. However since then I have put the site in maintenance mode and tried all o the above steps.

If anyone has any ideas, I would highly appreciate them.

Thanx, yupthatguy

19
  • Have you opened the browser console and looked for 404 errors? Sounds like the js files can't be found. Are the permissions on the files directory correct? If not, there should be a report on that in the admin/reports/status page.
    – Ollie
    Oct 19, 2015 at 10:44
  • status report says everything is fine... .. I don't know how to check for the 404 errors as you describe.
    – yupthatguy
    Oct 19, 2015 at 10:46
  • In google chrome: right click anywhere on the page, click "inspect", then select the "console" tab in the resulting window. You may have to refresh the page in order to see the errors.
    – Ollie
    Oct 19, 2015 at 10:47
  • you nailed it the js files are not being loaded... how do I fix it? re-uploading doesn't seem to work
    – yupthatguy
    Oct 19, 2015 at 10:50
  • where is it looking for them? I.e. what are the paths for the 404's? Get the path and go and look inside the directories on the server.
    – Ollie
    Oct 19, 2015 at 10:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.