• Resolved sunofjuche

    (@sunofjuche)


    Hello, I’m using a plugin ‘Tilda publishing’ along with X-currency on my website, and it seems these two conflict. Apparently, the reason is both plugins using php sessions and changing the global variable $_SESSION.
    There’s a ‘action_init’ function in SettingServiceProvider.php file, which starts a session and writes some values into the global var.
    The second mentioned plugin uses AJAX to synchronize a page on WP with Tilda. There are 2 requests, actually, and they also utilize php sessions: the first request fetches what needs to be downloaded from the source page and writes it to $_SESSION, and the second one takes what the first has written there and downloads it.
    While debugging, I noticed that there wasn’t any data from the 1st request in $_SESSION. I’m not exactly sure how it works, and have no idea how to properly debug this interference, but it might be due to calling ‘session_write_close’ inside ‘action_init’, after which nothing that is put in $_SESSION can be saved. Anyways, the problem disappears when I disable X-currency

Viewing 1 replies (of 1 total)
  • Plugin Author Md Al Amin

    (@mdalaminbey)

    In version 1.6.4, the call to session_write_close was removed from the SettingsServiceProvider. Please update to the latest version.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin conflicts’ is closed to new replies.