Jump to content

teraßyte

Clients
  • Posts

    33,395
  • Joined

  • Days Won

    47

 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 teraßyte

  1. After a fresh install, going to "ACP > System > SETTINGS > Web App" throws a TypeError:

    TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given (0)
    #0 path\to\system\Dispatcher\Controller.php(118): IPS\core\modules\admin\settings\_webapp->manage()
    #1 path\to\applications\core\modules\admin\settings\webapp.php(39): IPS\Dispatcher\_Controller->execute()
    #2 path\to\system\Dispatcher\Dispatcher.php(153): IPS\core\modules\admin\settings\_webapp->execute()
    #3 path\to\admin\index.php(13): IPS\_Dispatcher->run()
    #4 {main}

     

    The issue is this code:

            /* And finally, additional manifest and livetile details */
            $manifestDetails = json_decode( \IPS\Settings::i()->manifest_details, TRUE );
     
            $form->add( new \IPS\Helpers\Form\YesNo( 'configure_manifest', \count( $manifestDetails ) > 0, FALSE, array(
                'togglesOn'    => array( 'manifest_shortname', 'manifest_fullname', 'manifest_description', 'manifest_defaultapp', 'manifest_themecolor', 'manifest_bgcolor', 'manifest_display', 'manifest_custom_url_toggle' ),
            ) ) );

     

    The problem is that $manifestDetails at this point is NULL because the json encoded data is wrongly using square brackets:

    ["cache_key":1692875360]

    Instead of curly brackets:

    {"cache_key":1692875360}
  2. Looking at the code, there are 3 places the EasyPost Rates API is called:

    1. Testing the settings in ACP.
    2. Viewing a physical product's page (to figure out shipping rates/time)
    3. The shipping step in the checkout process.

     

    The code tries to retrieve the rates automatically only if you enabled the Allow Customer to Choose Rate? option in ACP.

    When this setting is enabled viewing a physical product makes 1 request to the rates API. If a member refreshes the page 10 times or views 10 separate physical products, without purchasing anything, that makes it 10 API requests with no purchase.

    This happens also when the page is being viewed by a bot. Maybe some bot aggressively indexed your site and caused all those requests? At the very least it should not execute the API call for bots, but I don't see any kind of block in the code right now.

     

    I think there should be a warning added for this. Maybe this was not something EasyPost did when the API was initially implemented into Invision Community. 🤷‍♂️

  3. When downloading/exporting a Pages custom database in ACP the database key field should be included in the XML file.

     

    When importing a database XML file with 4.7.15, a random imported_XXXX key is always set because the original is not included. I find it extremely annoying I have to remember to rename it every time I move a database from production to live. When importing the database, if the database key is already used, only then it should be set to a random imported_XXXX one (or rather original_db_key_XXXX to start with the same original key).

     

    I consider it a bug, but I'm posting a Feedback topic since it can be seen either way.

  4. 3 hours ago, Triumph said:

    I tried to get a new version to upload it, but I have problems to login or even register at https://invisionbyte.net/

    I tried to get a new version to upload, but I'm having trouble logging in or even registering at https://invisionbyte.net/.

    Login doesn't work, so I tried "Forgot your password?" but didn't receive any emails. Okay, maybe my account was too old and was removed, so I tried creating a new account. But then I got the message "You are not allowed to register an account on this website." I used the URL of my largest forum, then again the URL of a smaller one (the one from this thread here), but also this same problem.

    So I tried to contact the administrator, but before I get a response, I'm supposed to confirm my email address first, but I don't get a confirmation email (nothing ends up in the spam folder either).

    I think your registration was blocked by the IPS Spam Service. I'm seeing 10 attempts with 2 different emails (all the same name with 2 different domains) blocked with a 4 level.

    Please send me a PM here with your email(s) just to confirm it's you and I'll whitelist them. 👍

     

    And if those are indeed your emails, you might want to contact IPS to remove them from their spam list, too.

  5. 47 minutes ago, Joel R said:

    I still use this Wasabi + Cloudflare setup.  I cannot emphasize how much cheaper it is than Amazon S3 + Cloud front. The bandwidth fees would be hundreds of dollars (if not thousands) for my website that is media rich.  Instead, I pay zero in bandwidth fees and $5.99 per terabyte of storage.  

    What I'd like to know is if the fix IPS added in 4.5.4 allows the use of Wasabi without any 3rd party plugin/application.

    After my post above, I tried looking at the code, and I think it's impossible since there are some hardcoded Amazon URLs/values.

  6. 59 minutes ago, PPlanet said:

    So, is this a case that if upgrading IPS to 4.7.15, one needs to upgrade third party apps before? (I mean to avoid being stuck half way an upgrade?)

    If you update the apps first, the parameters still won't match (more instead of less). As long as you upgrade right away to 4.7.15 it won't matter anyway.

     

    The other option is to unpack the TAR of the application, manually upload all the new files to the server (both apps and incision community), and then go to /admin/upgrade. It's not really required in this case, though.

  7. Connect to your server with FTP (or use the file manager from your server's control panel).

    Find the file in the SUBCLASS/HOOK FILE column, search for the method listed in the METHOD function, and compare its parameters to the ones in the base file in the column BASE CLASS FILE.

     

    If you're unsure how to edit the files (no PHP knowledge, etc), you should ask someone who knows what they're doing to help you.

×
×
  • Create New...