Jump to content

Daniel F

Invision Community Team
  • Posts

    6,560
  • Joined

  • Days Won

    37

 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 Daniel F

  1. 4 minutes ago, Nathan Explosion said:

    Working fine on a dev instance though.

    Thanks for the note.

    I tested it on a dev instance too. Let's see if I can reproduce it on production.

    Edit:

    Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

     

  2. 46 minutes ago, adik said:

    @Stuart Silvester how can I fix the "broken users" where I used the connect tool? When they log into their account, they have the error:

    Error: Call to undefined method IPS\core\modules\front\system\register::save() (0)
    #0 public/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_register->validating()
    #1 public/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute()
    #2 public/index.php(13): IPS\_Dispatcher->run()
    #3 {main}

    Thanks, that's another issue which was not related to the previous bug. I have fixed this for an upcoming release.

  3. 1 minute ago, D-Trox said:

    Hello Marc, 

     

    Yea i isntall PHP 8.1  ,   

    apt-get install php8.1-mbstring  i also try apt-get install php-mbstring

    And the ACP - Get Support - php version ,   mbstring is enable

    Is mbstring also shown when you run php -i from CLI ?

    And last but not least, have you updated the path to the new php binary for the IPS4 cron job?

  4. Same with the following request:

    var_dump(
    \IPS\Http\Url::external( $url.'api/index.php?core/members/1/warnings' )->request()->login( $key, '' )->post(
    [
    'reason'  => 1,
    'moderator'  => 1,
    'acknowledged' => TRUE,
    'memberNote' => true,
    'suspend' => "2024-01-25 09:03:14 +0000",
    'restrictPosts' => "2024-01-25 09:03:14 +0000",
    ]
    )->decodeJson()
    );

    but I think I've just located an issue if warning actions are present!

    Let me investigate this further.

  5. I have tested it on my end with the same fields as you and it works as expected.

    The only difference I had to make was for the member note field, which is a string and not bool(but it shouldn't matter)

    My params:

    'reason'  => 1,
    'moderator'  => 1,
    'acknowledged' => TRUE,
    'memberNote' => true,
    'suspend' => "2024-01-25 09:03:14 +0000",
    'suspendPosts' => "2024-01-25 09:03:14 +0000",

     

  6. On 1/15/2024 at 10:27 PM, Aiwa said:

    This is where your analogy falls short. IPS software does allow conflicts (duplicates), per SQL. 
     

    I’m not saying there isn’t logic in the software to attempt to stop this, but in this instance those checks fail. Dev rule of thumb, make required logic as close to the DB as possible. MySQL has limitations with regards to foreign keys, but it does allow multiple unique constraints columns in a table.

    The reason for this is that accounts created via 3rd party login handlers aren't always completed ( they may be missing an email or name value while the registration isn't completed) so unfortunately we can't use an unique index here.

  7. It all depends on your setup, how sessions work(if permissions should be respected etc..) and if the results should really be shown on the external site or if it's fine to just redirect to the IPS search results page.

     

    If you need only the results and want to show them on your website,  I would suggest utilizing the REST API https://invisioncommunity.com/developers/rest-api?endpoint=core/search/GETindex

×
×
  • Create New...