• Resolved maddogprod

    (@maddogprod)


    After updating to the new version the website showed a critical error. I disabled the plugin and the site was restored. Now trying to activate it gives this error and it won’t activate:

    Parse error: syntax error, unexpected '(' in /home/sitenamehidden/public_html/wp-content/plugins/quick-event-manager/legacy/quick-event-register.php on line 157

    How can we get this working again?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • I have looked hard at that line and I can see no issues.

    In the first instance, to rule out a corrupt download, please re-download the plugin – go to plugins – add new – upload – allow overwrite.

    If that fixes it you had a corrupt download.

    If not please go to tools > site health> info – use the copy button and paste back here

    Thread Starter maddogprod

    (@maddogprod)

    Thanks for getting back to me quickly. Before I posted this I deleted the plugin and reinstalled it. I just did that again and still get the “Plugin could not be activated because it triggered a fatal error.” message.

    Looking at it, I suspect it might be because this client’s site is using PHP 5.6.40. I’ll need to look into why (probably an old theme) and if I can update, but in case it’s something else, here’s the Site Health info you asked for:


    ### wp-core ###

    version: 6.0.2
    site_language: en
    user_language: en
    timezone: America/New_York
    permalink: /%postname%/
    https_status: false
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: closed
    environment_type: production
    user_count: 3
    dotorg_communication: true

    ### wp-paths-sizes ###

    wordpress_path: /home/thai007/public_html
    wordpress_size: loading…
    uploads_path: /home/thai007/public_html/wp-content/uploads
    uploads_size: loading…
    themes_path: /home/thai007/public_html/wp-content/themes
    themes_size: loading…
    plugins_path: /home/thai007/public_html/wp-content/plugins
    plugins_size: loading…
    database_size: loading…
    total_size: loading…

    ### wp-active-theme ###

    name: Expressions (expressions)
    version: 1.28.4
    author: Kevin Archibald
    author_website: http://www.kevinsspace.ca/
    parent_theme: none
    theme_features: core-block-patterns, menus, widgets-block-editor, post-thumbnails, post-formats, editor-style, custom-background, custom-header, automatic-feed-links, widgets
    theme_path: /home/thai007/public_html/wp-content/themes/expressions

    ### wp-themes-inactive (2) ###

    Twenty Twenty: version: 2.0, author: the WordPress team
    Twenty Twenty-Two: version: 1.2, author: the WordPress team

    ### wp-mu-plugins (2) ###

    installatron_hide_status_test.php: author: (undefined), version: (undefined)
    ManageWP – Worker Loader: author: ManageWP, version: (undefined)

    ### wp-plugins-active (13) ###

    Classic Editor: version: 1.6.2, author: WordPress Contributors
    Classic Widgets: version: 0.3, author: WordPress Contributors
    Content Pizazz: version: 1.12.3, author: Kevin Archibald
    Gravity Forms: version: 2.6.6, author: Gravity Forms
    ManageWP – Worker: version: 4.9.14, author: GoDaddy
    SendGrid: version: 1.11.8, author: SendGrid
    TablePress: version: 1.14, author: Tobias Bäthge
    Translator Revolution DropDown: version: 2.0.4, author: SurStudio
    UpdraftPlus – Backup/Restore: version: 2.22.20.25, author: UpdraftPlus.Com, DavidAnderson
    WPtouch Mobile Plugin: version: 4.3.44, author: WPtouch
    WPTouch Sidebar: version: 1.0, author: Mad Dog
    Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast
    Yoast SEO: version: 19.6.1, author: Team Yoast

    ### wp-plugins-inactive (4) ###

    Jetpack: version: 11.3, author: Automattic
    Quick Event Manager: version: 9.5.0, author: Fullworks
    Quick Paypal Payments: version: 5.7.25, author: Fullworks
    WP Maintenance Mode & Coming Soon: version: 2.4.7, author: Themeisle

    ### wp-media ###

    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1808
    imagemagick_version: ImageMagick 7.1.0-2 Q16 x86_64 2021-06-25 https://imagemagick.org
    imagick_version: 3.5.1
    file_uploads: File uploads is turned off
    post_max_size: 32M
    upload_max_filesize: 32M
    max_effective_size: 32 MB
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 62 GB
    imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    imagick::RESOURCETYPE_FILE: 12288
    imagick::RESOURCETYPE_MAP: 62 GB
    imagick::RESOURCETYPE_MEMORY: 31 GB
    imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCbCr, YCbCrA, YUV
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, XPM
    ghostscript_version: 8.70

    ### wp-server ###

    server_architecture: Linux 2.6.32-954.3.5.lve1.4.89.el6.x86_64 x86_64
    httpd_software: Apache
    php_version: 5.6.40 64bit
    php_sapi: litespeed
    max_input_variables: 1000
    time_limit: 30
    memory_limit: 256M
    max_input_time: -1
    upload_max_filesize: 32M
    php_post_max_size: 32M
    curl_version: 7.71.0 OpenSSL/1.1.1p
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false

    ### wp-database ###

    extension: mysqli
    server_version: 5.6.51-cll-lve
    client_version: 5.6.42
    max_allowed_packet: 268435456
    max_connections: 250

    ### wp-constants ###

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/thai007/public_html/wp-content
    WP_PLUGIN_DIR: /home/thai007/public_html/wp-content/plugins
    WP_MEMORY_LIMIT: 256M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined

    ### wp-filesystem ###

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable

    `

    Thread Starter maddogprod

    (@maddogprod)

    UPDATE: I checked and yes, the reason this client uses PHP 5.6 is because their old creaky theme requires it.

    I’ll have to see if I can spin up a 5.6.4 env – but really it is nearly 4 years after end of life

    Thread Starter maddogprod

    (@maddogprod)

    I know. (:}) It worked fine until the update a couple of days ago. THANKS!

    I’m trying to build a 5.6.4 test env

    I should have a patch for you once I can test it

    For a fix

    change 175 of /legacy/quick-event-manager-register.php

    from

    $output[ $key ] = qem_get_element($fields, $key )['sanitize_cb']( qem_get_element($input, $key ) );

    to

    $cb = qem_get_element( $fields, $key )['sanitize_cb'];
    $output[ $key ] = $cb( qem_get_element( $input, $key ) );
    Thread Starter maddogprod

    (@maddogprod)

    Thanks! I see you put out an update. It installed and it works fine now.

    THANK YOU!!

    It should also now be ‘admin’ nagging on the plugin settings and reports pages about unsupported PHP versions 🙂

    Thread Starter maddogprod

    (@maddogprod)

    Nagging I can handle.

    Again, THANKS for taking care of this and for doing it quickly!

    A nice review about speed and effectiveness of support is always welcome, you can leave one here https://ww.wp.xz.cn/support/plugin/quick-event-manager/reviews/?view=all

    Thread Starter maddogprod

    (@maddogprod)

    Done! And VERY well deserved. Thanks again.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘New update causes Critical error’ is closed to new replies.