Jump to content
thirty bees forum

30knees

Gold member
  • Posts

    1,341
  • Joined

  • Last visited

  • Days Won

    29

Posts posted by 30knees

  1. We'd like to revamp our category structure. However, product URLs are in part based on the "current" category the product is in.

    I'm wondering how to change the category structure without losing the URL.

    Theoretically, I see two options:

    1. Somehow freeze current URLs for products. Is there a way to do this? To me it's surprising that something as important as a product URL is automatically "dynamic" in a sense that changing a category will affect the product URL.
    2. Create rewrites for the htaccess file, either manually or using a module like: https://addons.prestashop.com/en/url-redirects/21856-url-redirect-manage-301-302-303-redirects-404-urls.html or https://addons.prestashop.com/en/url-redirects/21428-redirections-manager-manage-301-302-and-404-urls.html

    If you have any other ideas/comments, by all means!

  2. Hope your holidays were nice!

    Those errors haven't occured again, they were just when I first installed the module so you're probably right with the configuration setting. But in the logs I see there's a new warning today. 

    DEPRECATION

     

    Message:

    explode(): Passing null to parameter #2 ($string) of type string is deprecated

     

     

     

    Location:

    modules/genzo_turnstile/genzo_turnstile.php line 224

     

    STACKTRACE

    #0  modules/mollie/vendor/sentry/sentry/lib/Raven/Breadcrumbs/ErrorHandler.php(34)
    #1  modules/mollie/vendor/sentry/sentry/lib/Raven/ErrorHandler.php(127): Raven_Breadcrumbs_ErrorHandler->handleError(8192, "explode(): Passing null to parameter #2 ($string) of type string is deprecated", string(102): "/modules/genzo_turnsti"..., 224, array(0) [])
    #2  builtin: Raven_ErrorHandler->handleError(8192, "explode(): Passing null to parameter #2 ($string) of type string is deprecated", string(102): "/modules/genzo_turnsti"..., 224)
    #3  modules/genzo_turnstile/genzo_turnstile.php(224): explode(",", null)
    #4  modules/genzo_turnstile/genzo_turnstile.php(193): Genzo_Turnstile->checkIfControllerNeedsValidation()
    #5  classes/Hook.php(769): Genzo_Turnstile->hookActionFrontControllerSetMedia(array(3))
    #6  classes/Hook.php(471): HookCore::coreCallHook(Genzo_Turnstile#1, "hookactionFrontControllerSetMedia", array(3))
    #7  classes/Hook.php(288): HookCore::execWithoutCache("actionFrontControllerSetMedia", array(3), null, false, true, false, null)
    #8  classes/controller/FrontController.php(1104): HookCore::exec("actionFrontControllerSetMedia", array(0) [])
    #9  classes/controller/Controller.php(201): FrontControllerCore->setMedia()
    #10 classes/controller/FrontController.php(255): ControllerCore->run()
    #11 classes/Dispatcher.php(861): FrontControllerCore->run()
    #12 index.php(33): DispatcherCore->dispatch()
    

    HTTP REQUEST

    GET /45-Ecom_home_smallest/spageti.webp211w,https:/domain.com/45-Ecom_home_smaller/spageti.webp218w,https:/domain.com/45-Ecom_home/spageti.webp250w
    

    REFERRER

    https://www.domain.com/hr/?MODsid=93b3eb0bc990aaf46ba6cc5dc983876e&cPath=32

    GET PARAMETERS

      [controller]: "pagenotfound"
    

    COOKIE

      [date_add]: "2023-06-03 09:35:59"
      [id_lang]: "2"
      [id_currency]: 2
  3. For when you're back from holidays, @wakabayashi. It looks like there is some deprecated code that would eventually want to be updated. I am getting these warnings:

    • explode(): Passing null to parameter #2 ($string) of type string is deprecated    modules/genzo_turnstile/genzo_turnstile.php:227 
    • explode(): Passing null to parameter #2 ($string) of type string is deprecated    modules/genzo_turnstile/genzo_turnstile.php:224
    • explode(): Passing null to parameter #2 ($string) of type string is deprecated    modules/genzo_turnstile/genzo_turnstile.php:161
  4. 19 hours ago, e-com said:

    Strange that you see subscribers not customers after uninstalling module. Because uninstall method deletes its table in database:

        public function uninstall()
        {
            Db::getInstance()->execute('DROP TABLE ' . _DB_PREFIX_ . 'newsletter');

            return parent::uninstall();
        }

     

    Customers who are subscribers, not who are not...so all good.

  5. I am giving the module a spin, too! Thank you, @wakabayashi. I'd like to use it in particular for "forgot password" attempts. We're getting loads.

    For the custom forms you write:

    Quote

    Add custom forms (for example from modules), that you want to be checked before submission. For that you need to add the "submit name" of a form. Use Browser Inspection, select the submit button and search for the "name" value. (Example: submitGenzoQuestion,postReview)

    I didn't find a "name" value, just an "id" value (form_forgotpassword). Are "name" and "id" interchangeable?

    EDIT: I found a name value "email" now. That works. 🙂 

    EDIT2: Using the value "email" seems to block Chex. When customers enter the email they get a "verifying email" message that doesn't get resolved.

  6. 17 hours ago, the.rampage.rado said:

    But I don't know what checkmark makes the subtraction (probably Consider the associated order as validated.)

    This was it (partially). I tested change of status and quantities in the backend and it all depends on whether the status has this flag set.

    However, checking "Consider the associated order as validated" does not have any effect if the order was submitted (and thus the status assigned) via the frontend. It only affects changes through the backend. Is this intended?

  7. In my tb 1.4 I've found that this happens:

    1) Order is made, stock is substracted --> Correct

    2) Order is cancelled, stock is added --> Correct

    3) Order is "reactivated", eg moved to "waiting for bank payment", stock is not substracted again --> Incorrect, stock should be subtracted

    4) Order is cancelled, stock is added again --> Incorrect because stock was not substracted under 3).

    Note: This also happens if the status was first moved to "cancelled" (stock added) and then "some status" (stock not subtracted) and then again "cancelled" (stock added).

    Is this confirmed in other installations?

  8. I'm using Cloudways and when I activate SSH the store admin login fails.

    I get the error that the password is wrong / no such employee exists. 

    Cloudways shows this warning when activating SSH:

    You appear to have symbolic links defined across your applications. If you choose to enable SSH, some or all of these links will not remain functional and may result in broken applications.

    Could this be why admin login fails after activating SSH? 

×
×
  • Create New...