Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » Cookies.expire function problem

  • Resolved Apolloneos

    (@apolloneos)


    Hello,

    after upgrading to V2.1.79 and V2.2.1, there is an error after uploading images in a gallery, through NextGEN Gallery button in a post. When it is caused, the whole wordpress backend has problems, until we clear cookies and login again.

    This is what we see in error console:

    TypeError: Cookies.expire is not a function at frame_event_publisher.min.js:1:5779

    window.Frame_Event_Publisher.delete_cookie 
    window.Frame_Event_Publisher.get_events
    window.Frame_Event_Publisher.initialize
    window.Frame_Event_Publisher.broadcast

    at /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/static/frame_event_publisher.min.js

    <anonymous>
    n.Callbacks/i
    n.Callbacks/j.fireWith
    .ready
    K

    at /wp-admin/load-scripts.php

    Can we do anything to solve this problem?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author photocrati

    (@photocrati)

    @apolloneos – We’re not seeing this in our testing nor are we aware of any other reports that might be similar in nature.

    Have you tried deactivating all of your plugins, clearing your browser cache (and site caches if you are using a caching plugin), then reactivating the NextGEN plugin?

    If this fixes the problem then it was likely one of the deactivated plugins that was causing an issue. Now, retrace your steps activating each plugin and re-checking to see if the problem returns. If it does then that last activated plugin was probably the one. Keep reactivating and in most cases it is also best to keep checking after each plugin, sometimes there may be more than one plugin on a site that will create an issue. If you do find one (or more) plugins causing this problem we would greatly appreciate your feedback on them so the developers may address them as soon as they can.

    Also to note, in rare cases it may be the theme itself that is causing a conflict so while you have just the NextGEN plugin activated you might consider temporarily switching to one of the default WordPress Twenty series themes and see if this corrects the issue as well.

    If the problem still persists after all of this we would still want to know, even more so, as we will still want to sort out the issue and may need additional details.

    Thanks!

    – Cais.

    Thread Starter Apolloneos

    (@apolloneos)

    Hello,

    after a lot of tests we show that the error comes in console after a gallery’s images are uploaded, exactly when the message “..image was uploaded successfully.” is appeared. After a while backend’s functions are stuck.

    The problem disappears temporarily if we logout and login again, or if we delete cookie “X-Frame-Events_…”. Next, if we upload an image to a gallery, the error appears again.

    We tried to deactivate all plugins and we found that the plugin “Comments – wpDiscuz 4.0.6” causes a conflict. By deactivating this plugin we do not have this error. However, we used it for months without any problem.

    Can you address it, so we could enable wpDiscuz again?

    Another small issue we also have for many months now is, that the button “Click to edit” inside the post editor does not work. We can not find any way to solve this issue. We would be grateful if check this issue too.

    Thanks.

    • This reply was modified 5 years, 2 months ago by Apolloneos.
    Plugin Author photocrati

    (@photocrati)

    @apolloneos – I’m not familiar with the “Comments – wpDiscuz 4.0.6” plugin … would you be able to point to the WordPress plugin directly link for this one?

    Thanks!

    – Cais.

    Thread Starter Apolloneos

    (@apolloneos)

    Plugin Author photocrati

    (@photocrati)

    @apolloneos – Thanks for the link although I was not able to reproduce what I understand you are seeing in my testing. This may point to something more involved with the issue or perhaps not understanding your workflow clearly.

    Would you be able to provide a detailed step-by-step workflow for us to test more specifically. This may also include any specific settings you are using for the plugin(s).

    Thanks!

    – Cais.

    • This reply was modified 5 years, 1 month ago by photocrati.
    Thread Starter Apolloneos

    (@apolloneos)

    Hello, these are the steps:

    1. New Post
    2. Add Gallery
    3. Add new Gallery/Image and upload one or more images
    4. Insert displayed Gallery
    5. Repeat step 2 and 3
    6. The error is happened and WordPress backend stucks.

    I don’t have any special settings in wpDiscuz, but if you need them I can export settings and send you via email.

    Thanks.

    Plugin Author photocrati

    (@photocrati)

    @apolloneos – Are you adding images to the existing inserted gallery at step 5 or are you adding a new gallery with new images? I would like to try to reproduce the steps you are taking exactly.

    Thanks!

    – Cais.

    Thread Starter Apolloneos

    (@apolloneos)

    Hello, it doesn’t matter at step 5 if it is the same or new gallery. In most cases I used the existing gallery, but it does the same adding a new too.

    Plugin Author photocrati

    (@photocrati)

    @apolloneos – I just followed your workflow as described and I am not able to reproduce the problem you are describing. Is there any other context you can add to this?

    Thanks!

    – Cais.

    Thread Starter Apolloneos

    (@apolloneos)

    Hello,

    I just updated to the new version, but the error continues.

    Can you try to use Super Socializer (https://wordpress.org/plugins/super-socializer) plugin too? We have only enabled Social Commenting, along with wpDiscuz.

    Also, after uploading an image to the Gallery, close the window of the Gallery, wait for some minutes and then go to step 5. You can repeat step 5 one-two more times too. Then try to add the featured image of the post or add a tag, you would see that you can’t do it.

    I mention again, that if we delete cookie “X-Frame-Events_…” the error is gone, until we add new images to a Gallery according to the previous steps. If wpDiscuz is deactivated we have no error.

    Thanks!

    Plugin Author photocrati

    (@photocrati)

    @apolloneos – Your note “If wpDiscuz is deactivated we have no error” points to the root cause of the error, is the other author been made aware of the problem? Have they tried to correct what is happening? If they need assistance they can contact us via our Bug Report form here: https://imagely.com/report-bug/

    Thanks!

    – Cais.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Cookies.expire function problem’ is closed to new replies.