Migrating Concrete

Permalink
Hey folks!

Strange issue here, one that I've never encountered before.

I just migrated a client's concrete site from my apache localhost to my server. Did it like I always do. Moved the files and DB to the server, and changed site.php to reflect the new SQL login/db info. I don't believe I've done anything different than what I normally do.

But now, when viewing the site, this is what shows up:

Warning: require_once(C:\wamp\www\jhaines\concrete/libraries/view.php) [function.require-once]: failed to open stream: No such file or directory in /home/jhaines/public_html/new/concrete/core/libraries/loader.php on line 30
Fatal error: require_once() [function.require]: Failed opening required 'C:\wamp\www\jhaines\concrete/libraries/view.php' (include_path='/home/jhaines/public_html/new/libraries/3rdparty:/home/jhaines/public_html/new/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/jhaines/public_html/new/concrete/core/libraries/loader.php on line 30


Looks like, somewhere, it's still trying to reference view.php on my localhost. Any idea why this is happening and what I can do to fix it?

Thanks,
Mike

 
tallacman replied on at Permalink Reply
tallacman
Ive not used WAMP and not sure if thats an issue, but was it a bad (corrupted) file transfer? Have you tried a second time? CAn you get to the login page with a forced url? (site_name.com > index.php/login)?
neatlee replied on at Permalink Reply
Missed answering a couple questions, sorry.

Tallacman, I've uploaded it twice now, with no reported failed file transfers. I can't access the site admin panel directly on the live server, but if I change site.php back to my localhost DB settings, I can access everything just fine locally. (I've also double and triple checked my DB settings in site.php to make sure I didn't have a DB name or something wrong - it's all correct).

I've logged back into the site locally, cleared the cache, and I'm uploading it all again. We'll see if that has any effect.

If anyone else has any thoughts, I'd love to hear them!

Thanks,
Mike
johnpaulb replied on at Permalink Reply
johnpaulb
Hello neatlee,

It looks like they installed Concrete5 using WAMP, then installed a 3rd party item from their local computer, causing it to reference the C:\ location.

The best solution may be following the location to see what it is looking for and uninstalling it, then re-installing it from the active website.

I hope this helps.

-John-Paul
neatlee replied on at Permalink Reply
Thanks for the help so far folks.

I forgot to mention, this is all in the same environment locally that I've designed countless other concrete5 sites for previous clients. I've done everything the same as I always do. I design the "theme" locally, then once I have the theme done and page types done, I upload everything to their hosting account on my dedicated server and start adding content/addons etc. once it's live and online.

Nothing that I'm aware of changed this time around. All the images the theme is referencing are inside the theme folder, and no addons or anything are installed yet. It's just a blank site with a custom theme.

I've already looked at line 30 in loader.php to see if I could sort it out, but I can't make sense of it.

Here's the context in loader.php for line 30:

/** 
       * Loads a library file, either from the site's files or from Concrete's
       */
      public function library($lib, $pkgHandle = null) {
         $env = Environment::get();
         require_once($env->getPath(DIRNAME_LIBRARIES . '/' . $lib . '.php', $pkgHandle));
      }


And line 30 specifically:

require_once($env->getPath(DIRNAME_LIBRARIES . '/' . $lib . '.php',
neatlee replied on at Permalink Reply
Well, I fixed it in a round-about way. Had to delete everything off the server, upload a blank slate concrete and install it, then copy the theme files over.

The *only* thing I could think of that might have messed with the first one is the autonav. I'll never know now ;-)

Thanks for the help anyways,
Mike