• Resolved gertjank

    (@gertjank)


    Hi there,

    The new, upcoming “Gutenberg ” includes a more recent files of the React js files.
    This will break wp-content/plugins/react-webcam/js/ActualImage.js – the
    var ActualImage = React.createClass({
    line

    Result : an initial image is shown – https://www.brit-hotel-fumel.fr/contact/#piscine but the refreshing stops working.

    Detected this using WP 4.9.8

    Deactiving Gutenberg and the plugin refreshes again.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter gertjank

    (@gertjank)

    More info :
    Gutenberg included a far more recent “React” version. Instantiating of the class changed, thus the “java” part fails.

    Thread Starter gertjank

    (@gertjank)

    Update : I can use “Gutenberg” without disturbing this plugin.
    All is ok now.
    Case closed ^^

    Plugin Author Radek Matej

    (@nikdo)

    I’m sorry I wasn’t much an help. I should have updated the plugin to newer React version months ago, but I had other priorities.

    I’m glad the problem was resolved after all.

    Hi

    I also have this problem. Could explain me you resolve the problem ?

    Thanks ??

    @gertjank, your hotel site isn’t in WP5.0 but in 4.9.8 ??

    Thread Starter gertjank

    (@gertjank)

    @006fazer : Right. I normally wait before doing a major update. Have to have access to PC’s where I can make data backups etc.
    But it’s done now. Running 5.0 and my camera (this extension) still updates ^^

    Without even thinking, I installed – as proposed when reading …/wp-admin/about.php – the old editor as an extension – and deactivated/removed the Gutenberg (the extension part).
    Will check later on if Gutenberg (and the more recent Java codes that comes allong with) still conflicts with this – webcam extension.

    • This reply was modified 5 years, 11 months ago by gertjank.
    • This reply was modified 5 years, 11 months ago by gertjank.

    Hi

    I also installed the old editor extension. But how can I disable the new Gutenberg extension ? I have two option or edit pages plus the elementor extension I used to create my pages.

    I create a fresh installed of wp 5 with only the old editor and react webcam, no refresh of images ??

    So, I forgot to do something.

    Be
    éric

    Thread Starter gertjank

    (@gertjank)

    Update : (a small messy writeup)
    I removed the “old editor” (the extension) and re enabled the new one (“Gutenberg”).
    https://www.brit-hotel-fumel.fr/contact/#piscine
    still works well.

    But : as soon as I login, and edit/open the “contact” page, or to be more precise : one of the pages where I have the webcam BB code, the Gutenberg editor bails out.

    For me, after removing ALL extensions except WebCam, this combination does not work
    Gutenberg + Webcam + PDF Embedder ( https://wp-pdf.com/ ) => Editing a page that contains the Webcam BB = no-go.

    Gutenberg + Webcam = ok
    Gutenberg + PDF Embedder = ok

    When opening Guteberg, and the error shows up, it’s mentions :
    ….
    /wp-content/plugins/react-webcam/js/vendor/react.min.js?ver=5.0:5951:3
    ….
    /wp-includes/js/dist/vendor/react.min.js?ver=16.6.3:20:291
    ….
    As found out before : double instances of react.min.js are included. The same code (== functions, etc), different versions = no go (of course).

    What should be done is that React Webcam uses the build in the build-in (to WP)
    /wp-includes/js/dist/vendor/react.min.js?ver=16.6.3:20:291
    version and not includes it’s own (ancient) version.

    @gertjank did you get this resolved? will there be an update of the plugin or does anybody know of any alternative?
    Thanks

    Hi,

    No solution for me for the moment ??

    @gertjank appears to have a problem with an additional plugin but not Gutenberg;

    Gutenberg + Webcam + PDF Embedder […] = no-go.
    Gutenberg + Webcam = ok
    Gutenberg + PDF Embedder = ok

    So can anyone confirm that using Classic editor + Webcam in WP5 is ok? Or even Gutenberg + Webcam?

    Kindly,

    /Hans

    Hi
    For me it’s not ok ??

    So what did you do @006fazer ? A new site, is the camera uploading to the new site so the Reactcam has something to load? Did you install the Classic editor and then disabled the option of using Gutenberg, as per https://kinsta.com/blog/disable-gutenberg-wordpress-editor/ ?

    /Hans

    I revert to 4.9 version of WP to have a funtionnal webcam and clone the web site to a test site and upgrade it to WP5. Make a cron script which copy webcam picture from the first site to the second.

    To disable Gutenberg, i installed Classic editor.

    Eric ??

    Ok, so you got that covered. I tried replacing the contents of react.min.js with a new version of react and the picture loads ok, but does not update. So it will not be enough to just point react-webcam to use the version of React that is included in WP5 (that I don’t have yet), I guess some function in the plugin must be rewritten which is beyond me.

    Another thing, your cron sounds interesting. I need a cron-job that can erase uploaded webcam images from time to time… ??

    All the best,

    /Hans

    • This reply was modified 5 years, 9 months ago by bpahe.
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Gutenberg will break react-webcam’ is closed to new replies.