issues with copying site to local wamp server
Permalink
I've just upgraded my site to 5.5.1 and copied it down to my local machine, done a backup of the site and imported it into the local mysql database, done all the required changes in site.php, but my site now has this sitting at the top of the page:
I have managed to log in, and now that stuff is sitting between the edit mode bar and my site content, and the edit mode bar is blank.
The reason I'm copying to local, is I'm doing a substantial site redesign and need the site to stay as it is until the redesign is done. Is this the best way to do that, or should I just copy everything to a subdirectory on the host and copy the database for the redesign?
Any ideas what's going on locally?
Richard
configure(); return $result; } public function install() { $pkg = parent::install(); $this->configure(); } public function configure() { $pkg = Package::getByHandle('tony_multi_file_attribute'); Loader::model('collection_types'); Loader::model('collection_attributes'); $db = Loader::db(); //install new multiple files attribute type $multiFileAttrType = AttributeType::getByHandle('multiple_files'); if(!is_object($multiFileAttrType) || !intval($multiFileAttrType->getAttributeTypeID()) ) { $multiFileAttrType = AttributeType::add('multiple_files', t('Multiple Files'), $pkg); } //check that the multi-files attribute type is associate with pages $collectionAttrCategory = AttributeKeyCategory::getByHandle('collection'); $catTypeExists = $db->getOne('SELECT count(*) FROM AttributeTypeCategories WHERE atID=? AND akCategoryID=?', array( $multiFileAttrType->getAttributeTypeID(), $collectionAttrCategory->getAttributeKeyCategoryID() )); if(!$catTypeExists) $collectionAttrCategory->associateAttributeKeyType($multiFileAttrType); $multiFileAttrKey=CollectionAttributeKey::getByHandle('files'); if( !$multiFileAttrKey || !intval($multiFileAttrKey->getAttributeKeyID()) ) $multiFileAttrKey = CollectionAttributeKey::add( $multiFileAttrType, array('akName'=>t("Images/Files"),'akHandle'=>'files','akIsSearchable'=>0), $pkg) ;//null, 'MULTIPLE_FILES'); } } ?>
I have managed to log in, and now that stuff is sitting between the edit mode bar and my site content, and the edit mode bar is blank.
The reason I'm copying to local, is I'm doing a substantial site redesign and need the site to stay as it is until the redesign is done. Is this the best way to do that, or should I just copy everything to a subdirectory on the host and copy the database for the redesign?
Any ideas what's going on locally?
Richard
on closer inspection, the local install is being completely mangled, but I don't know why. This is a screenshot from the DOM inspector as it should be (from the webhost), followed by a screenshot of the inspector on the local install. Stuff that should be under <head> is appearing under <body> and all sorts.
ok fixed it, for some reason my local install wasn't liking the Multiple Files Attribute package, whereas it was ok on the web host, so I just deleted it as I wasn't using it anyway.