ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

setting up dev environment

June 30, 2010 9:35am

Subscribe [6]
  • #1 / Jun 30, 2010 9:35am

    mambotech

    45 posts

    Hi,

    I have just created the identical directory structure on my dev server can copied over all my production box expression engine folders and exported the db. The only thing that has changed is the URL   When I first launched the dev url the site loaded fine.  I logged into the CP and changed the urls in the general settings. I test the url again and got a white screen of death. I change the settings back and still get the white screen.  This is the log entry error

    PHP Fatal error:  Call to a member function user() on a non-object in /datastore/ee/system/core/core.functions.php(634) : eval()‘d code on line 6

    ExpressionEngine 1.6.8 - © Copyright 2003 - 2009 - EllisLab, Inc.
    Script executed in 0.1624 seconds   15 SQL queries used
    Build:  20091002

  • #2 / Jun 30, 2010 2:27pm

    Sue Crocker

    26054 posts

    Several things I’d suggest.

    1. Upgrade to 1.6.9 on the machine you have the good data.

    2. Delete and remake the other database, and load up the 1.6.9 files, making sure a good install exists. Then I’d transfer over data from the other machine.

    Does that help?

  • #3 / Jul 01, 2010 3:01am

    mambotech

    45 posts

    Hi Sue,

    I don’t see how that would help.  Why would I want to run the risk of breaking the production environment and being in the same situation as I am in development. You advice should have been.

    1. copy over the production environment again.
    2. Don’t make any changed in the preferences.
    3. Upgrade this environment to 1.6.9 and make sure it works.
    4. Then upgrade the Production using the same process.

    Thanks for what you have said but I would never run the risk of breaking prod. I am sure this is a bug in Expression Engine as one simple change should not break it.  I will let you know what happens.  It is quite possible that the last developer has not built the site correctly. This has been found with the business directory he built for me in Cakephp. I have a cake specialist sorting that out for me :( 

    BTW copying the production directory over again worked straight away until I changed the CP Home ›  Admin ›  System Preferences ›  General Configuration > URL to your Control Panel index page to the dev URL This broke the site again.  Even if it was changed back it made no difference.  This must be a bug!

    Thanks Mark

  • #4 / Jul 01, 2010 3:52am

    Paul Stone

    97 posts

    Hi Mark,

    Is there anywhere perhaps in your YOURCPDIRECTORY/config.php file of /path.php file that hard codes the location of the site in?  If there is something in there it could be over-riding/affecting the location set in your database.

    Also, I often make use of this module by Hop Studios that allows you to view all the places the URL/paths are stored in one place: http://www.hopstudios.com/software/deeploy_helper/

    Thanks,
    Paul.

  • #5 / Jul 01, 2010 5:19am

    mambotech

    45 posts

    Hi Paul,

    Thanks for replying.  I will check that out now. I have updated to 1.6.9 on the dev box and it has broken the build with the same error.  I followed the upgrade process to the letter an made sure all the modules where up to date.  I am not a developer so have limited knowledge to what the original dev built and not sure what he may have changed.  I have since found out that he is a bit of a loose cannon and doesn’t stick to conventions.

    Will post what I find

    Thanks Mark

  • #6 / Jul 01, 2010 5:42am

    mambotech

    45 posts

    Hi Paul,

    The config.php had the URL hard coded. 

    devsite is broken and I have not got a clue why ... the 1.6.9 upgrade broke the frontend

    Thanks

    Mark

  • #7 / Jul 01, 2010 5:55am

    Paul Stone

    97 posts

    Hi Mark,

    Has your site worked on this exact development environment before?

    Although it’s certainly odd. If you are copying the files/db down from production and just changing the URLs it should work.  I guess that the PHP error getting thrown indicates that there is something else going on.

    Thanks,
    Paul.

  • #8 / Jul 01, 2010 6:14am

    mambotech

    45 posts

    Paul,

    A straight copy works fine apart from the little issue of the cp url. The upgrade broke the devsite but this did also happen on the production which I had to roll back. I want to get it working in dev first so I know where the problem is situated.  The problem I am facing is the stupid error that the log shows PHP Fatal error:  Call to a member function user() on a non-object in /datastore/ee/system/core/core.functions.php(634) : eval()‘d code on line 6.  It’s worse than a microsoft error and I have know idea how to debug it.

    This is so funny http://www.youtube.com/watch?v=fzza-ZbEY70&has_verified=1  check it out

    Mark

  • #9 / Jul 01, 2010 7:59am

    Sue Crocker

    26054 posts

    Are you running any kind of extensions?

  • #10 / Jul 01, 2010 8:42am

    mambotech

    45 posts

    These are the modules that are installed

    1   Blacklist/Whitelist   Blacklist and whitelist module   —  Not Installed   Install
    2   Blogger API   Blogger API Module   —  Not Installed   Install
    3   Comment   User commenting system   1.2   Installed   Remove
    4   Email   User Email Module   1.1   Installed   Remove
    5   Emoticon   Emoticon (smiley) module   1.0   Installed   Remove
    6   File Manager   Module to upload and delete files on the server   1.2.5   Installed   Remove
    7   Freeform   Open-ended form engine   2.7.2   Installed   Remove
    8   Photo Gallery   Photo Gallery Module   1.2   Installed   Remove
    9   IP to Nation   Utility for associating IP addresses with their country   1.2   Installed   Remove
    10   LG Polls   Add polling to Expression Engine   1.0.6   Installed   Remove
    11   Mailing List   Mailing List Manager   2.0   Installed   Remove
    12   Member   Member management system   1.3   Installed   Remove
    13   Metaweblog API   Metaweblog API Module   —  Not Installed   Install
    14   Moblog   Moblogging Module   —  Not Installed   Install
    15   Pages   Uses Weblog Entries to make Static pages   —  Not Installed   Install
    16   Query   SQL query module for templates   1.0   Installed   Remove
    17   Referrer   Referrer tracking module   1.3   Installed   Remove
    18   RSS   RSS page generating module   1.0   Installed   Remove
    19   Search   Search module   1.2   Installed   Remove
    20   Simple Commerce   Simple, Flexible Commerce Module   —  Not Installed   Install
    21   Statistics   Statistics display module   1.0   Installed   Remove
    22   Structure   Uses entries to create a page hierarchy for static and listing pages.    2.1.1   Installed   Remove
    23   Trackback   Trackback module   1.1   Installed   Remove
    24   Updated Sites   Allows other sites to ping you.  —  Not Installed   Install
    25   Weblog   Weblog module   1.2   Installed   Remove
    26   Wiki   A Powerful, Integrated Wiki module   —  Not Installed   Install

    I have rolled back to 1.6.8 now and it is all working.  Need to find what is breaking this on upgrade.

    Thanks

  • #11 / Jul 01, 2010 9:15am

    Paul Stone

    97 posts

    If you go to CP > Admin > Utilities > Extensions Manager, could you also paste extensions are installed there?

  • #12 / Jul 01, 2010 11:19am

    mambotech

    45 posts

    Extension Name   Documentation   Settings   Status
    Structure Extension (v.2.1.1)
    Adds Structure tab to publish and edit screens.  —  Settings   Enabled (Disable?)
    LG Polls: Controller (v.1.0.6)
    Adds polling to Expression Engine   Documentation   —  Enabled (Disable?)
    LG Polls: Poll Question (v.1.0.6)
    Adds a polls question custom field type   Documentation   —  Enabled (Disable?)
    LG Twitter (v.2.0.1)  Documentation   Settings   Disabled (Enable?)
    LG Better Meta (v.1.9.0)
    Implements an interface to add meta data to ExpressionEngine weblog entries   Documentation   Settings   Enabled (Disable?)
    Gypsy (v.1.0.6)
    Free your custom fields from their field groups   Documentation   Settings   Enabled (Disable?)
    LG .htaccess Generator (v.1.0.0)
    Generates .htacess files to remove index.php from your urls   Documentation   Settings   Enabled (Disable?)
    FieldFrame (v.1.4)
    Fieldtype Framework   Documentation   Settings   Enabled (Disable?)
    NSM Publish Plus (v.1.1.1)
    Improved publishing workflow for ExpressionEngine   Documentation   Settings   Enabled (Disable?)
    LG Addon Updater (v.1.0.2)
    Provides hooks for other extensions to check for updates   Documentation   Settings   Enabled (Disable?)
    jQuery for the Control Panel (v.1.1.1)
    Adds the jQuery javascript library for use in the control panel.  Documentation   Settings   Enabled (Disable?)
    LG Live Look (v.1.0.4)  Documentation   Settings   Disabled (Enable?)
    LG Add Sitename (v.1.2.0)
    Adds custom XHTML and CSS to the header of the ExpressionEngine control panel.  Documentation   Settings   Enabled (Disable?)

  • #13 / Jul 01, 2010 6:48pm

    Brandon Jones

    5500 posts

    First, I’d suggest disabling extensions globally via the large green button in the Extension Manager (don’t disable individually) to eliminate some variables while testing.

    Then, since the error message you’re receiving indicates a problem in your template, create a test template called ‘test’ within your default group with only this code:

    <h1>Hello World</h1>

    Are you able to see the test template at yoursite.com/index.php/default_group/test ?

    (replace ‘default_group’ with the name of your default template group)

  • #14 / Jul 02, 2010 3:07am

    mambotech

    45 posts

    Hi Brandon,

    I have just found a strange problem which I am not sure is normal practice.  When I updated the database to 1.6.9 on the dev server it broken the navigation links as the top of the page.  It turns out the last developer has used id’s in the database to control all of the links apart from the home link.  Is this a normal way of using EE?


    Thanks Mark

    BTW I only found this after restore the db back to 1.6.8

  • #15 / Jul 02, 2010 3:37am

    John Henry Donovan

    12339 posts

    Mark,


    Take a look at the version notes regarding upgrade to 1.6.9
    http://expressionengine.com/docs/installation/version_notes_1.6.9.html

    You will see Structure and Better Meta are affected which may be an issue with your upgrade

    It turns out the last developer has used id’s in the database to control all of the links apart from the home link.

    What do the navigation links look like in the template. Can you post that specific portion of code.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases