Jump to content

Jonas Erlandsson

Clients
  • Posts

    39
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Jonas Erlandsson

  1. On 2/4/2022 at 10:18 PM, Mote Marketing, Inc. said:

    I would also recommend that you consider implementing "in-line" help within the IPS ACP itself. I crafted such a strategy for our ReachOut365® enterprise content delivery platform that is used by some of the world's largest insurance companies. In our app, many if not all (non-self-explanatory) field labels have a pink underline indicating that there is mouseover help text available. This way, rather than the user having to go view an (out-of-date) external Help article, there is field/feature information right there where you need it). In addition to this, our mouseover help popups often link to more detailed external articles when appropriate (that we constantly update).

    To me that sounds extremely cluttered and making the tool more cumbersome to work with. I guess that boils down to level of knowledge. At one point that kind of help just becomes a distraction. If applying such a strategy would be on the table I'd ask for a setting where it can be turned off.

     

    On 2/4/2022 at 10:05 PM, Mote Marketing, Inc. said:

    I am totally willing and able to do my own homework, but your Help system just doesn't cut it (unless you're a Developer, in which case, the documentation is reasonably good).

    I wish this was true, but in fact the documentation is a mix of API docs (classes and params), while other pages are guides on how to do things. I'm a developer since 2008 and still find this extremely confusing.

    I can start reading an article on how to do X, which gives me a link to Y, and when I click on Y it shows me a class description, but it doesn't tell me how to actually use it. It takes for granted that I know where to put the file.
    It would be so much better to completely separate these two types of documentation and have guides/tutorials in one section and API explanations in another, and reference to them from the guides by explicitly calling it what it is.

    To me it's even come so far that I don't really use the documentation at all, but rather debug the application to understand how things work under the hood. And that's something I really shouldn't have to do. When I've asked in the forum I don't get any pointers either. Instead you insists on getting direct access to the server to be able to check.
    I don't want the support team to log in via SSH to my server to check the installation. That's a huge security risk.
    I want to fix it myself by getting pointers where to look so that I can 1) fix it and 2) report back to you what the error was.
    If you need to have 100% control over your installation in order to give support you shouldn't sell the on-premise at all.

     

    Even if this isn't 100% related I think it's important - when building stuff I need to enable some dev-mode in order to generate some file structure, move over to my editor/IDE and code, then go back into the Developer Central to create some other thing. The entire developer experience is throwing me between my editor/IDE and the ACP. I would highly recommend creating a CLI tool where I can work without the disturbance of switching to the dev central to do things.
    This workflow feels like a 2003 type of standard that no one really works by anymore. It feels like you're living in 2012 with no real desire to move into 2022. Hell, you're still even using jQuery.

  2. I think it would be a really cool idea to have a deep diving guide that starts with how to build an application with all its' bells and whistles (not just a text dumping out Hello World), such as menu integration, view files and JavaScript shenanigans.
    That application could then serve as a base for a guide on how to build an extension, a plugin and whatever module type you might have.

    That would obviously be a big job, but I think that would be a great way to educate people on how to work with your product. In the end that could help bring the need for support down because it would make it easier to debug things on your own as long as you have a the basic understanding about your platform, since the main applications follow the same principle. Does that make sense?

  3. 8 hours ago, Daniel F said:

    Have you any examples? I remember that somebody reported few guides which we have updated immediately after they were reported.

    I'm quite new in this world, but I, for one, would love some more in-depth examples/guides on how to create/extend the platform. What we have now is the extremely basic Hello World application example, which doesn't cover how to work with the JavaScript framework (it's linked to some other JS framework page that is more of an api documentation than examples), neither does it explain how to work with the menu system. Literally all it does is showing the text "Hello world".

    When I've been following guides (i.e the release-notes guide) the active page navigation often disappear so that I have to find the right section in the sidebar, open it and one or two more steps to find the next page. Linking to the next page at the end of the section would be a very easy and welcome addition. It might not be a really big issue, but that sidebar is really cluttered with links making it a bit cumbersome.

    Regarding support in general I must say that @Marc Stridgen has been really quick to answer my questions in the forums.

  4. The system has created them and I can upload files in the system. The system can create files so it should be able to create folders (e.g uploads is writable by the system). It still won't recreate. That's why I want to debug why things aren't recreated. As I mentioned earlier in the thread I changed the index.php file so that it would create things in the uploads folder when I load the page and that worked so files can definitely be created. We've even had 777 permissions on the uploads folder but it still won't recreate it.

    Can you point me to where things are being recreated so that I know where to start debug without having to trace it manually please? I'd be happy to share my findings here so it'd be a win win for everyone.

  5. We've figured part of this out now.

    The system cache still breaks stuff but at least it won't kill the theme anymore.
    However - it does not recreate the upload-folders that keeps my images for my CMS content so I had to manually re-create that again. I can re-upload the files.

    I had a monthly_2021_12 folder containing content and when I run the clear system cache that got removed and not re-created.

    Can you point me in the direction where the system cache gets recreated after clearing so that I can debug it?
    Now it acts as a "remove all uploaded content" to me rather than a cache clearing mechanism.

  6. It does say this:

    Quote

    [[Template core/admin/global/globalTemplate is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

    What does the "support tool" refer to here and is it triggerable via REST? I looked up the clearCache controller and that doesn't seem to regenerate the files again after being run (but maybe that's done when the site is loaded for the first time?). I even tried to change it so that the cache would be stored in the DB but that had no effect at all.

    I edited index.php and tried to write to /uploads when I loaded the page and that worked so the application can write to the uploads folder.

    Any ideas @Marc Stridgen?

  7. I do have a lot of template_<hash>-files in uploads (and some in the datastore folder as well).

    The uploads folder also contains css_build_0 and whatnot. So the directories are writable.

    Trying to turn on debug logging now to see if I can get a more detailed error. The uploads/logs doesn't give me any kind of error strangely enough.

  8. Hello.

    I've moved my installation from one server to another and if I copy the datastore and uploads from the old server to the new one everything works, but since the old site is our staging/test-installation the domain is different and things are loaded from that old domain on the live site (which gives me cors error).

    So what I did was that I tried to clear the system cache and when I do that all hell breaks lose.

    All CSS and JS are gone (e.g not reproduced in /uploads) and all I see is:

    InvalidArgumentException:  (0)
    #0 /site/system/File/File.php(326): IPS\_Image::create()
    #1 /site/system/Theme/Theme.php(709): IPS\_File::create()
    #2 /site/system/Theme/Theme.php(4495) : eval()'d code(14): IPS\_Theme->resource()
    #3 /site/system/Theme/Theme.php(5348): IPS\Theme\css_core_global___flags_css()
    #4 /site/system/Theme/Theme.php(2543): IPS\_Theme::writeCss()
    #5 /site/system/Theme/Theme.php(621): IPS\_Theme->compileCss()
    #6 /site/system/Dispatcher/Standard.php(63): IPS\_Theme->css()
    #7 /site/system/Dispatcher/Admin.php(89): IPS\Dispatcher\_Standard::baseCss()
    #8 /site/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\_Admin->init()
    #9 /site/admin/index.php(13): IPS\_Dispatcher::i()
    #10 {main}

    and it looks like this:

    image.thumb.png.0f022529f700a3f504bb6aba61225790.png

    any ideas on what might go wrong with this?
    My first thought was that uploads and datastore couldn't write, but when I look in there I can see that new files have been created.

    I seem to get 500 error (in network tab) when I try to go to /admin.

     

  9. Sorry, forgot to answer your tips too.
    There is nothing in the browser console or in the backend logs. The request flow works and I end up on the 301 that redirects me to the page with the proper $_GET['_fromLogin'] in place. It's when the page redirects something happens with the Session. It happens both on localhost and our dev environment.

  10. Ok. I've gotten so far that if I dd (as in die and dump) the \IPS\Session::i()->member before the redirect in the login controller if actually gives me the proper user back.

    If I dd the same thing after the redirect, the member is gone and it's just a random "browser user".

    Not giving support on testinstalls isn't something I feel we should get into in public forums. We can continue that thread via the support system if you'd like 🙂

  11. I'm having the same issue on my environment.

    I created an account, can log in to admin (I added the account to the admin group), but I can't log in to the Front.

    I've debugged the login and I can see that my user is being fetched, but it seems like it's not setting the session at all (if that's what being used).

    I don't get any errors, and I see that I get a 301 to _fromLogin=1 via

    \IPS\Output::i()->redirect( $ref->setQueryString( '_fromLogin', 1 ) );

    Since it's processing the entire $success flow, I guess it should actually log me in and when I debug the $success variable I can find my user in there.

    Might the problem be related to a faulty session?

×
×
  • Create New...