JustHatched Posted October 3, 2018 Posted October 3, 2018 On my test site I have added the developer tools (deleted all but forums, core, nexus, calendar as I do not have them from the files) Added the constants.php file as described here and no changes appear to happen for make a plug in After some searching I found this page which says the constants.php needs to have <?php added to it, but when I do that it breaks the site. What am I missing here?
All Astronauts Posted October 3, 2018 Posted October 3, 2018 <?php define( 'IN_DEV', TRUE ); That's it. JustHatched 1
JustHatched Posted October 3, 2018 Author Posted October 3, 2018 3 minutes ago, All Astronauts said: <?php define( 'IN_DEV', TRUE ); That's it. I've done that, but then I lose all the css. I appreciate the response, I done some searching before and after posting and it appears I am not the only one who has had the issue. I am going to comb thru thru them to find a solution
Aiwa Posted October 3, 2018 Posted October 3, 2018 (edited) Have you cleared your browser cache after turning dev mode on? Edited October 3, 2018 by Aiwa
bfarber Posted October 4, 2018 Posted October 4, 2018 Did you upload all of the developer tools? AndyF 1
JustHatched Posted October 4, 2018 Author Posted October 4, 2018 4 hours ago, bfarber said: Did you upload all of the developer tools? No, I only have forums, commerce and calender. So I only uploaded those plus core. The CSS breaks when I put the constants.php file in. From looking around for a solution the only thing I have found is it could be server related issue but I am not sure how that would be or what to do to fix it atm
Adriano Faria Posted October 4, 2018 Posted October 4, 2018 Bfarber is talking about this: Have you uploaded it?
bfarber Posted October 4, 2018 Posted October 4, 2018 You need to upload the developer tools in order for CSS, javascript, etc. to work.
JustHatched Posted October 4, 2018 Author Posted October 4, 2018 14 minutes ago, Adriano Faria said: Bfarber is talking about this: Have you uploaded it? 13 minutes ago, bfarber said: You need to upload the developer tools in order for CSS, javascript, etc. to work. Yes I've done that, what I meant in my reply was I did not upload the files for the stuff I dont have (blogs, downloads, etc..) per this link which say "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."
bfarber Posted October 4, 2018 Posted October 4, 2018 It's hard to guess from here then - I would inspect the browser console to see if the requests are failing for some reason, visit the direct CSS URLs to see what they are returning, and so on.
Nathan Explosion Posted October 4, 2018 Posted October 4, 2018 You uploaded the folders for the Apps you have.....mentioned it a few times. But did you upload the DEV folder that goes in the root of the install too?
JustHatched Posted October 4, 2018 Author Posted October 4, 2018 13 minutes ago, Nathan Explosion said: You uploaded the folders for the Apps you have.....mentioned it a few times. But did you upload the DEV folder that goes in the root of the install too? I did The issue has been solved, it was an issue on my server with suhosin, 2 varibles were not what the system recommended, it's fixed now. bfarber and Joel R 2
IPCommerceFan Posted October 11, 2018 Posted October 11, 2018 On 10/3/2018 at 4:44 PM, JustHatched said: I've done that, but then I lose all the css. Just ran into a similar problem, thought I'd share my solution here. When enabling IN_DEV, its important the correct boolean method is used. e.g., in my case: define('IN_DEV', 1); = nuked css define('IN_DEV', TRUE); = works fine Mark H and bfarber 2
Apfelstrudel Posted February 25, 2021 Posted February 25, 2021 (edited) Hi, I am also having an issue with enabling dev mode (on local XAMPP). I copied all necessary dev folders (except for apps I don't have). I set all file permissions correctly. The software still works BUT as soon as I add the IN_DEV setting to constants I get an error for every page: Whoops \ Exception \ ErrorException (E_WARNING) session_name(): Cannot change session name when headers already sent Any ideas? Edited February 25, 2021 by Apfelstrudel
Daniel F Posted February 25, 2021 Posted February 25, 2021 3 minutes ago, Apfelstrudel said: I copied all necessary dev folders (except for apps I don't have). I guess that's the problem then 😉 You'll need the dev files for all installed apps and plugins
Apfelstrudel Posted February 25, 2021 Posted February 25, 2021 Hello Daniel, that's what I wrote. 😉 I just copied the dev folders for all installed apps.
bfarber Posted February 25, 2021 Posted February 25, 2021 In your constants.php add this define( 'DEV_USE_WHOOPS', false ); Refresh the page. Typically the error you are seeing is indicative of something occurring low-level triggering a PHP error (I've hit it locally before attempting to use an unsupported version of PHP for instance, as I have to switch around between different versions of things frequently). I recommend removing the above constant after confirming the underlying error.
Apfelstrudel Posted February 26, 2021 Posted February 26, 2021 (edited) By adding this constant the site works now BUT ... the entire site is in english now although the english language pack is disabled. I can't switch it to my local language although it is being showed as active. All custom SEO urls don't work although they are all listed and activated. All databases don't work anymore. Error code: 256 ErrorException: You have used a function (count) that should be called from the root namespace for performance reasons (/forum/system/Theme/Theme.php(4465) : eval()'d code::65). (256) My technical specs of the local XAMPP system: php: 7.4.14 mysql: v5.5.5-10.4.17-MariaDB no plugins or add-ons installed Any tips? Edited February 26, 2021 by Apfelstrudel
Daniel F Posted February 26, 2021 Posted February 26, 2021 6 minutes ago, Apfelstrudel said: the entire site is in english now although the english language pack is disabled. I can't switch it to my local language although it is being showed as active. That's intentional, IN_DEV uses the applications/x/dev/lang.php files 7 minutes ago, Apfelstrudel said: All custom SEO urls don't work although they are all listed and activated. You'll have to enable this via the DEV_USE_FURL_CACHE constant 8 minutes ago, Apfelstrudel said: All databases don't work anymore. Error code: 256 ErrorException: You have used a function (count) that should be called from the root namespace for performance reasons (/forum/system/Theme/Theme.php(4465) : eval()'d code::65). (256) You an disable this by setting the IN_DEV_STRICT_MODE constant to false. Apfelstrudel 1
Apfelstrudel Posted February 26, 2021 Posted February 26, 2021 Thanks Daniel for the support but adding ... Quote define( 'DEV_USE_FURL_CACHE', TRUE ); ... to constants.php didn't make it. FURLs are still not available. Obviously all my template changes are not being used because also this won't work in dev mode. I guess I don't understand the idea behind dev mode in the way it was made for but I just want to create plugins and test them immediately afterwards in my xampp version. But I can't do this because my xampp version doesn't run regarding look and feel as it does live right now. Sorry devs, don't hit me. I have to learn how to think like a pro. 😄
Nathan Explosion Posted February 26, 2021 Posted February 26, 2021 (edited) DEV = a newly installed site, no customisations other than the ones you are working on IN_DEV TEST = either a newly installed site, or a copy of your live site, where you install your customisations created IN_DEV (uses -TESTINSTALL version of license) PROD = your live site (uses your license) Edited February 26, 2021 by Nathan Explosion Apfelstrudel 1
Recommended Posts