I moved a local install onto my server(dv-mediatemple) and it displays a page starting with

// $Id: content.js,v 1.1.2.3 2008/10/06 14:30:01 karens Exp $ Drupal.behaviors.cckManageFields = function(context) { attachUpdateSelects(context); }; function attachUpdateSelects(context) { var widgetTypes = Drupal.settings.contentWidgetTypes; var fields = Drupal.settings.contentFields; // Store the default text of widget selects. $('#content-field-overview .content-widget-type-select', context).each(function() { this.initialValue = this.options[0].text; }); // 'Field type' select updates its 'Widget' select. $('#content-field-overview .content-field-type-select', context).each(function() { this.targetSelect = $('.content-widget-type-select', $(this).parents('tr').eq(0)); $(this).change(function() { var selectedFieldType = this.options[this.selectedIndex].value; var options = (selectedFieldType in widgetTypes) ? widgetTypes[selectedFieldType] : [ ]; this.targetSelect.contentPopulateOptions(options); }); // Trigger change on initial pageload to get the right widget options // when field type comes pre-selected (on failed validation). $(this).trigger('change'); }); // 'Existing field' select updates its 'Widget' select and 'Label' textfield. $('#content-field-overview .content-field-select', context).each(function() { this.targetSelect = $('.content-widget-type-select', $(this).parents('tr').eq(0)); this.targetTextfield = $('.content-label-textfield', $(this).parents('tr').eq(0)); $(this).change(function(e, updateText) { var updateText = 

line after line then ends with
NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS

the actual source code is

// $Id: content.js,v 1.1.2.3 2008/10/06 14:30:01 karens Exp $
 
Drupal.behaviors.cckManageFields = function(context) {
  attachUpdateSelects(context);
};
 
function attachUpdateSelects(context) {
  var widgetTypes = Drupal.settings.contentWidgetTypes;
  var fields = Drupal.settings.contentFields;
 
  // Store the default text of widget selects.
  $('#content-field-overview .content-widget-type-select', context).each(function() {
    this.initialValue = this.options[0].text;
  });
 
  // 'Field type' select updates its 'Widget' select.
  $('#content-field-overview .content-field-type-select', context).each(function() {
    this.targetSelect = $('.content-widget-type-select', $(this).parents('tr').eq(0));
 
    $(this).change(function() {
      var selectedFieldType = this.options[this.selectedIndex].value;
      var options = (selectedFieldType in widgetTypes) ? widgetTypes[selectedFieldType] : [ ];
      this.targetSelect.contentPopulateOptions(options);
    });
 
    // Trigger change on initial pageload to get the right widget options
    // when field type comes pre-selected (on failed validation).
    $(this).trigger('change');
  });
 
  // 'Existing field' select updates its 'Widget' select and 'Label' textfield.
  $('#content-field-overview .content-field-select', context).each(function() {
    this.targetSelect = $('.content-widget-type-select', $(this).parents('tr').eq(0));
    this.targetTextfield = $('.content-label-textfield', $(this).parents('tr').eq(0));
 
    $(this).change(function(e, updateText) {
      var updateText = (typeof(updateText) == 'undefined') ? true : updateText;
      var selectedField = this.options[this.selectedIndex].value;
      var selectedFieldType = (selectedField in fields) ? fields[selectedField].type : null;
      var selectedFieldWidget = (selectedField in fields) ? fields[selectedField].widget : null
      var options = (selectedFieldType && (selectedFieldType in widgetTypes)) ? widgetTypes[selectedFieldType] : [ ];
      this.targetSelect.contentPopulateOptions(options, selectedFieldWidget);
 
      if (updateText) {
        $(this.targetTextfield).attr('value', (selectedField in fields) ? fields[selectedField].label : '');
      }
    });
 
    // Trigger change on initial pageload to get the right widget options
    // and label when field type comes pre-selected (on failed validation).
    $(this).trigger('change', false);
  });
}
 
jQuery.fn.contentPopulateOptions = function(options, selected) {
  return this.each(function() {
    var disabled = false;
    if (options.length == 0) {
      options = [this.initialValue];
      disabled = true;
    }
 
    // If possible, keep the same widget selected when changing field type.
    // This is based on textual value, since the internal value might be
    // different (optionwidgets_buttons vs. nodereference_buttons).
    var previousSelectedText = this.options[this.selectedIndex].text;
 
    var html = '';
    jQuery.each(options, function(value, text) {
      // Figure out which value should be selected. The 'selected' param
      // takes precedence.
      var is_selected = ((typeof(selected) !== 'undefined' && value == selected) || (typeof(selected) == 'undefined' && text == previousSelectedText));
      html += '<option value="' + value + '"' + (is_selected ? ' selected="selected"' : '') +'>' + text + '</option>';
    });
 
    $(this)
      .html(html)
      .attr('disabled', disabled ? 'disabled' : '');
  });
}GNU GENERAL PUBLIC LICENSE
 
              Version 2, June 1991
 
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave,
Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute
verbatim copies of this license document, but changing it is not allowed.
 
                  Preamble
 
The licenses for most software are designed to take away your freedom to
share and change it. By contrast, the GNU General Public License is
intended to guarantee your 

and goes all the way to the end of terms and conditions

Thanks for any help in advance

Comments

cayenne’s picture

You probably have figured this out, but your server is not correctly reading the file as a PHP file.

Interestingly, I do not see the <?php at the beginning of the file, so you might make sure it is really there.

Beyond that, you may need to persuade your server to treat index.php as a php file

Are you sure that your htaccess file is put where it belongs?

:)

tommyent’s picture

Thanks for the response.
My initial thought was parsing but after some tests I ruled it out.

Not sure what it precisely came down to just enough incomplete or corrupted files.

I got one of the admin pages to load at the very bottom of all the text. It loaded the access denied but also gave me some errors one being a error in a line in the filefield_paths.module I went looking and noticed it was about half the size of what it was supposed to be.

I replaced that but doing that broke the sites admin page I was able to somewhat load. I went to the .inc file I remembered from the error sure enough same thing.

Anyway I ended up overwriting all files if larger or newer files with Filezilla and whola.

Might be time to give up Filezilla.

One other weird thing now that you brought up .htaccess I am unable to see it with Filezilla but if I look in Plesk it's there.

frob’s picture

That is not a php file, looks like javascript to me.