Jump to content

Community

  • We are moving our Documentation to our new Guides area.

    As articles are moved they will be deleted. Please start following the new guides. We look forward to publishing all our new guides soon!

  • Sign in to follow this  

    Developer Mode (*)


    Mark

    Developer Mode is required to develop Applications and Plugins in IPS Community Suite.

    Developer Mode will cause the software to run much slower than usual and may introduce security vulnerabilities. You should only enable Developer Mode if you are a PHP developer intending to develop Applications and Plugins and should only do so on a local installation that is not web-accessible

    To enable Developer Mode:

    1. Download the Developer Tools, making sure you download the correct version for the version of IPS Community Suite you are using. Developer Tools for pre-release versions may be available, so you may need to download an older version from the "Previous Versions" section.
    2. Extract the developer tools and move them to where IPS Community Suite is installed, merging with the existing files. There is a root "dev" folder, and "dev" folders for each application. If you do not have every IPS Community Suite application installed, you should delete the folders you don't need from the Developer Tools folder before copying. The presence of Developer Tools for uninstalled applications may cause errors.
    3. If you do not already have a constants.php file in the root folder of your installation, create one.
    4. Add the following line to your constants.php file:
      define( 'IN_DEV', TRUE );

     

    For more information on how to use the tools which become available when Developer Mode is enabled, and for more information on developing for the IPS Community Suite, see the developer documentation.

    Important Notes:

    • The developer tools includes the files necessary for all IPS applications. If you are enabling developer mode on an install where third-party applications and plugins are present you will also need to obtain and apply the developer tools (i.e. the "dev" folder) for those from the author.
    • Note that when you upgrade your installation, you will need to download the updated Developer Tools.
    Sign in to follow this  


    User Feedback

    Recommended Comments

    What are the correct steps to take when upgrading a IN_DEV install? 

    I think it's this, but I'm not sure: 

    1. Turn off IN_DEV
    2. Upload the updated core files and dev files
    3. Run the upgrade procedure, still not IN_DEV
    4. View the community front page when the upgrade is done to check it seems okay
    5. Turn IN_DEV on again

    Can it be upgraded without turning IN_DEV off? Are the multiple ways to do it? Does this seem like the best procedure or is there a better one? @Mark, could you share some insight? I think it would also be useful to write some words on this in the article. 

    I have the same kind of questions with regards to upgrading a designers mode installation too. But I guess I'll wait with that for the designers mode article to come around. 

    I think I'm not the only one who is unsure on this, so some official clarification would be good. 

    Share this comment


    Link to comment
    Share on other sites

    When in developer mode you can just upload the updated files (including the Developer Tools). You do not need to run the upgrader or turn developer mode off.

    Share this comment


    Link to comment
    Share on other sites

    Aren't there queries, rebuild tasks and so on which should be run in some cases on upgrade?

    I guess what you're saying is that it wouldn't be necessary to "rush it", but every now and then I should try to upgrade the dev enabled install at least?

    In the cases where I do want to run the upgrader, should it work equally fine to run the upgrader while in dev mode? 

    Share this comment


    Link to comment
    Share on other sites

    Been using ipb3 for a couple of years and recently installed 4 for testing and eventual migration of our sites to ipboard.  

    Some of the basic actions i need to get through:

    1. Port the ssoSessions class extension from ipb3 to 4 -> this requires dev mode it seems. I tried downloading it, but i get the following error upon enabling in_dev in my constants.php

    Whoops \ Exception \ ErrorException (E_NOTICE)
    Undefined index: disable_notification_sounds

     

    Running ipb 4, developer tools v101000

    Share this comment


    Link to comment
    Share on other sites
    On 3/10/2015, ncsoft said:

    Been using ipb3 for a couple of years and recently installed 4 for testing and eventual migration of our sites to ipboard.  

    Some of the basic actions i need to get through:

    1. Port the ssoSessions class extension from ipb3 to 4 -> this requires dev mode it seems. I tried downloading it, but i get the following error upon enabling in_dev in my constants.php

    Whoops \ Exception \ ErrorException (E_NOTICE)
    Undefined index: disable_notification_sounds

     

    Running ipb 4, developer tools v101000

    Probably you have to use the v100044 (for IPB 4.0.13 --> or for an other IPB 4.x version)
    go here https://community.invisionpower.com/files/file/7185-developer-tools/?changelog=11002

    Share this comment


    Link to comment
    Share on other sites
    14 hours ago, Friedrich Zwanzger said:

    Same problem here. Running the tools downloaded for IPB4.1 Beta (IPS Developer Tools v101001)

     

    Same problem here, installed the dev mode twice or 3 times and still having the same error.

    Share this comment


    Link to comment
    Share on other sites

    You have to ensure that error reporting is set correctly for php.

    Setting

    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE

    did the trick for me. That should be the default value, but wasn't on my ubuntu 14.04 TLS

    Share this comment


    Link to comment
    Share on other sites

    Got the developer mode "working" in the AdminCP at last.

    But the frontend fails bigtime. It requires some classes, which are not present in 4.13.

    ex. applications/core/dev/html/front/global/breadcrumb.phtml uses IPS\core\Stream which the autoloader expects to live in applications/core/sources/Stream.php

    There is no sources dir in my installation.

    Share this comment


    Link to comment
    Share on other sites

×
×
  • Create New...