• Resolved andreescocard

    (@andreescocard)


    After creating first list, i found this bug:
    Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (28/06/2021)
    I’m brazilian and when using brazilian date, it gives critical error
    Maybe a validation on that field should solve the problem
    Thanks for the plugin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nmerii

    (@nmerii)

    Let me know the brazilian date you are using. I am unable to replicate the error. Also did you create the list in the backend or frontend and where did the error show, was it on the screen or in a log file? I would need to see the full error message so that I can tell the specific line of file that is producing it. I may eventually need access to your site to be able to fully replicate the error if necessary.

    Thread Starter andreescocard

    (@andreescocard)

    Date example: 28/06/2021
    List created on frontend
    Error showed after i added debug mode on config.php
    I solved it changing the date on backend, now the list is working fine and error is gone
    Another doubt is how to search lists on frontend? This functionality exists?
    Thanks

    Plugin Author nmerii

    (@nmerii)

    Good that you solved it, though I would have liked to know how the error came so that I can solve it for others.

    Visit the plugin documentation page for searching wishlists (https://nmgiftregistry.com/documentation/searching-wishlists).

    Thread Starter andreescocard

    (@andreescocard)

    The problem was caused by wrong date format on frontend in the list creation, i didn’t know i should use american date format. I solve by changing it on admin, somehow there the error on admin didn’t show.
    Thanks for the documentation link.
    I started translating the plugin to brazilian portuguese but shows waiting, do you have to approve? I would like to use it on my language.
    Another doubt is to change the date to brazilian date format, i guess it should be changed on code.

    Plugin Author nmerii

    (@nmerii)

    The event date comes with a datepicker that sets the date in a consistent format that can be manipulated with php. Please use the datepicker to prevent the error from showing. I would still come up with a way that allows the datepicker to set the date in the format chosen in the admin general settings screen which should match your locale – I believe this is what you are asking for. For now just use the datepicker in order to prevent unexpected results.

    How are you translating the plugin? You’re completely free to translate it to your language. It has nothing to do with me and I don’t have to approve it in any way. Please check and make sure you’re doing it the right way.

    Thread Starter andreescocard

    (@andreescocard)

    Yes, i know, i was testing it fast and inserted the date without using the datepicker, i guess i’ll code it to match my language.
    I was translating on web using this link: https://translate.www.ads-software.com/projects/wp-plugins/nm-gift-registry-and-wishlist-lite/stable/pt-br/default/, shows waiting for me, so i thought you had to approve it (i don’t know how it works too)
    To get a fast translation i downloaded Poedit and made my own .po and .mo files
    The feature to create multiple lists is on the paid plugin right? I receive a request to create a list with random products clicking on a button on frontend, the paid version has this functionality?
    Thanks

    Plugin Author nmerii

    (@nmerii)

    Ok now I understand how you were translating the plugin. You would need to read wordpress’ translation handbook to know how to translate the plugin using their website. I think you need a translation editor to approve your translations, that’s why they have a ‘waiting status’.
    However as you have created your own translation separately, that is also good but don’t forget to update this whenever there is a plugin update because some of the language strings must have changed.

    Yes the feature to create multiple lists is on the paid version of the plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Critical error after create first list’ is closed to new replies.