• Resolved lsoderst

    (@lsoderst)


    Logged in as a user adding events hangs with the message “The request is beeing processed…” and the event is not added.
    Logged in as admin this error does not occur.

    This fault has persisted since approximately end of September.

    CPMV version: 1.4.10 (same problem with previous version)
    WP version: 6.0.3 (same problem with 6.0.2)
    Browsers tried: IOS Safari, Win10 Firefox, Win 10 Edge, Win 10 Chrome

    • This topic was modified 2 years, 4 months ago by lsoderst.
    • This topic was modified 2 years, 4 months ago by lsoderst.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Same here (everything is up to date)

    When trying to add Event as user, the answer to the POST request is : Error: {“IsSuccess”:false,”Msg”:”Access to edition not allowed.”}

    Thread Starter lsoderst

    (@lsoderst)

    Problem still exists. No news.

    Hi

    While waiting for the official fix, I looked at the code and here is part of the fix, which allows successful add or delete but without feedback or the ability to edit the details. So you have to reload the page to see the changes.

    1. There is a missing argument (“v” for view) in the GET to check that the calendar is modifiable.
    Edit the file: cp-multi-view-calendar/DC_MultiViewCal/src/Plugins/multiview.js
    To add the “v” argument in the URLs (around line 205:

    url: DATA_FEED_URL + "&method=list&calid="+calendarId+"&v="+config.id,
    quickAddUrl: DATA_FEED_URL + "&month_index="+i18n.dcmvcal.dateformat.month_index+"&method=add&calid="+calendarId+"&v="+config.id,
    quickUpdateUrl: DATA_FEED_URL + "&method=update&calid="+calendarId+"&v="+config.id,
    quickDeleteUrl: DATA_FEED_URL + "&method=remove&calid="+calendarId+"&v="+config.id,

    2. The test to remove an event depends on another function that checks the view capability of WordPress – but view cap is only granted to logged in people.
    Edit the file: cp-multi-view-calendar/php/datafeed.php
    And comment the “exit;” line on cpmvc_confirm_basic function (line 85).

    This is a temporary and partial fix but it at least restores the editing of the agenda for the “add” and “delete” actions.

    Thread Starter lsoderst

    (@lsoderst)

    Hi Nat,

    That work-around works well awaiting the official fix. Thanks a bunch!

    /Lasse

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Regarding to the cases where the “Save” button doesn’t work (usually a conflict with some themes), please update to the version #1.4.12 or later.

    Regarding to the case of the message “Access to edition not allowed”, please note that in the latest plugin versions in order to be able to edit/change events data from the public page you have to be authenticated (logged in) in the website with some WordPress account. This was a required security modification to prevent unauthorized edition. The workaround mentioned above in this thread (editing the code) is valid to allow the unauthenticated edition but it isn’t recommended in most cases.

    Thank you for the feedback!

    Thread Starter lsoderst

    (@lsoderst)

    Hi Codepeople,

    The problem

      persists for logged in users

    with version 1.4.12.

    Logged in as a user adding events hangs with the message “The request is beeing processed…” and the event is not added.

    • This reply was modified 2 years, 4 months ago by lsoderst.

    Hi codepeople,

    Thanks for the clarification about anonymous users.

    In version 1.4.12 there is still the missing argument (“v” for view) in the GET to check that the calendar is modifiable (for authenticated users).

    In file cp-multi-view-calendar/DC_MultiViewCal/src/Plugins/multiview.js.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    There version #1.4.13 has been just published. It solves some bootstrap compatibility issues related to the edition panel. Please try it.

    Thank you for the feedback!

    Thread Starter lsoderst

    (@lsoderst)

    Hi again,

    The problem persists in 1.4.13 as well.

    Regards

    Thread Starter lsoderst

    (@lsoderst)

    The problem still persists.

    Regards,

    I am suffering from the same problem. Our users that will be using the calendar do not have access to the WordPress back end, in fact only admins have access to the back end. Please fix as this is rendering your product unusable. I am currently at the version on your site page. 1.4.13. WordPress and all themes are at the latest as of 05/12/2022.

    Plugin Author codepeople

    (@codepeople)

    Please note that in the latest plugin versions in order to be able to edit/change events data from the public page you have to be authenticated (logged in) in the website with some WordPress account. It can be an authentication in the public side of the website, it doesn’t have to be with access to the back end.

    Thank you for the feedback!

    Thread Starter lsoderst

    (@lsoderst)

    Hi,

    <span style=”text-decoration: underline;”>Logged in as a user</span> adding events hangs with the message “The request is beeing processed…” and the event is not added.
    Logged in as admin this error does not occur.

    This fault has persisted since approximately end of September 2022.

    CPMV version: 1.4.13 (same problem with previous three versions)
    WP version: 6.1.1 (same problem since 6.0.2)
    Browsers tried: IOS Safari, Win10 Firefox, Win 10 Edge, Win 10 Chrome

    Thread Starter lsoderst

    (@lsoderst)

    Since the logged in users have reduced wp permissions, the problem may get solved if clear which permissions are required for the plugin to work.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Please update to the version 1.4.15 or later, it shows a proper message in that case.

    Thank you for the feedback!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Cannot add events as user’ is closed to new replies.