• Resolved georgebaciu

    (@georgebaciu)


    Hello,

    I have just installed ?WP Charitable Lite and tried to connect the plugin to my Stripe account, through Gateway setttings. When I try the connection, I get a fatal error in WordPress. In my error_log file I have the following message:

    PHP Fatal error:? Uncaught Error: Call to undefined function error_log() in /home/comunica/sanatate-prin-arte.ro/wp-content/plugins/charitable/includes/stripe/gateway/class-charitable-stripe-webhook-api.php:217

    Has anyone any idea why this is happening?

    Thanks


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WPCharitable

    (@wpcharitable)

    Hi @georgebaciu

    Thanks for reaching out. That error is particularly unusual so we wanted to ask you the following so we provide the best response:

    1. Can you tell us what PHP version you are using? In fact, if you can share the information in the “server” info section of your WordPress Site Health area (in the tools menu) that would be even more helpful. If you need help locating the “server” area this document can show you where that is (again the whole server area would be nice but PHP version at a minimum).

      https://www.wpbeginner.com/plugins/how-to-quickly-get-system-information-for-your-wordpress-site/
    2. Can you let us know who your hosting provider is or where this is being hosted?

    Thank you in advance for this information!

    Thread Starter georgebaciu

    (@georgebaciu)

    Hello,

    The hosting provider is not a renowned entity : https://www.hostx.ro/

    The site info:

    wp-core
    
    version: 6.1.1
    site_language: ro_RO
    user_language: en_US
    timezone: Europe/Bucharest
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 3
    dotorg_communication: true wp-paths-sizes wordpress_path: /home/comunica/sanatate-prin-arte.ro
    wordpress_size: 51,90 Mo (54424328 bytes)
    uploads_path: /home/comunica/sanatate-prin-arte.ro/wp-content/uploads
    uploads_size: 17,49 Mo (18336696 bytes)
    themes_path: /home/comunica/sanatate-prin-arte.ro/wp-content/themes
    themes_size: 65,30 Mo (68472761 bytes)
    plugins_path: /home/comunica/sanatate-prin-arte.ro/wp-content/plugins
    plugins_size: 76,28 Mo (79980164 bytes)
    database_size: 12,13 Mo (12713984 bytes)
    total_size: 223,09 Mo (233927933 bytes) wp-dropins (1) advanced-cache.php: true wp-active-theme name: Enfold (enfold)
    version: 5.3.1.1
    author: Kriesi
    author_website: https://kriesi.at
    parent_theme: none
    theme_features: core-block-patterns, block-templates, avia_exclude_bbPress, avia_exclude_GFForms, avia_exclude_menu_exchange, avia_exclude_pojo_accessibility, avia_exclude_wp_accessibility, avia_exclude_relevanssi, avia_exclude_wpml, avia_exclude_instagram_feed, avia_exclude_leaflet_map, avia_mega_menu, avia_improved_backend_style, avia_option_pages_toggles, avia_sidebar_manager, automatic-feed-links, nav_menus, menus, widgets, woocommerce, post-formats, avia_post_meta_compat, force-post-thumbnails-in-widget, post-thumbnails, widgets-block-editor, title-tag, editor-styles, editor-style, customize-selective-refresh-widgets, responsive-embeds, editor-color-palette, editor-font-sizes, wc-product-gallery-zoom, wc-product-gallery-slider, avia-wc-30-product-gallery-feature, avia_no_session_support
    theme_path: /home/comunica/sanatate-prin-arte.ro/wp-content/themes/enfold
    auto_update: Disabled wp-themes-inactive (1) Twenty Twenty-Two: version: 1.3, author: the WordPress team, Auto-updates disabled wp-plugins-active (20) Charitable: version: 1.7.0.8, author: Charitable Donations & Fundraising Team, Auto-updates disabled
    Contact Form 7: version: 5.7.2, author: Takayuki Miyoshi, Auto-updates enabled
    Contact Form CFDB7: version: 1.2.6.5, author: Arshid, Auto-updates enabled
    Cookie Notice & Compliance for GDPR / CCPA: version: 2.4.5, author: Hu-manity.co, Auto-updates enabled
    Give - Donation Plugin: version: 2.23.2, author: GiveWP (latest version: 2.24.0), Auto-updates disabled
    Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: version: 3.1.56, author: Sendinblue, Auto-updates enabled
    Quiz And Survey Master: version: 8.0.8, author: ExpressTech, Auto-updates disabled
    reSmush.it Image Optimizer: version: 0.4.11, author: reSmush.it, Auto-updates enabled
    Show 230: version: 1.0, author: George Baciu, Auto-updates disabled
    Simple Custom CSS and JS: version: 3.42, author: SilkyPress.com, Auto-updates enabled
    The Events Calendar: version: 6.0.7, author: The Events Calendar, Auto-updates enabled
    UpdraftPlus - Backup/Restore: version: 1.22.24, author: UpdraftPlus.Com, DavidAnderson, Auto-updates enabled
    Widget Context: version: 1.3.2, author: Kaspars Dambis, Auto-updates disabled
    WooCommerce: version: 7.3.0, author: Automattic, Auto-updates disabled
    WooCommerce Direct Checkout: version: 2.7.6, author: QuadLayers, Auto-updates disabled
    WooCommerce Stripe Gateway: version: 7.0.2, author: WooCommerce, Auto-updates disabled
    WPCode Lite: version: 2.0.6, author: WPCode, Auto-updates enabled
    WPS Hide Login: version: 1.9.6, author: WPServeur, NicolasKulka, wpformation, Auto-updates enabled
    WP Super Cache: version: 1.9.2, author: Automattic, Auto-updates enabled
    Yoast SEO: version: 19.14, author: Team Yoast, Auto-updates enabled wp-plugins-inactive (7) CF7 Google Sheet Connector: version: 5.0.0, author: GSheetConnector, Auto-updates enabled
    Duplicate Page: version: 4.5, author: mndpsingh287, Auto-updates enabled
    Duplicator: version: 1.5.1, author: Snap Creek, Auto-updates enabled
    Kadence WooCommerce Email Designer: version: 1.5.7, author: Kadence WP, Auto-updates disabled
    Post Type Switcher: version: 3.2.1, author: Triple J Software, Inc., Auto-updates disabled
    Sendinblue - WooCommerce Email Marketing: version: 3.0.2, author: Sendinblue (latest version: 3.0.3), Auto-updates disabled
    SPA Customizations: version: 1.0, author: George Baciu, Auto-updates disabled wp-media image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1808
    imagemagick_version: ImageMagick 7.1.0-20 Q16-HDRI x86_64 2022-01-22 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: File uploads is turned off
    post_max_size: 256M
    upload_max_filesize: 128M
    max_effective_size: 128 MB
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 186 GB
    imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    imagick::RESOURCETYPE_FILE: 196608
    imagick::RESOURCETYPE_MAP: 186 GB
    imagick::RESOURCETYPE_MEMORY: 93 GB
    imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, 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, FITS, FL32, FLV, FRACTAL, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, 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, QOI, 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: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: unknown wp-server server_architecture: unknown
    httpd_software: LiteSpeed
    php_version: 8.0.26 64bit
    php_sapi: litespeed
    max_input_variables: 100000
    time_limit: 300
    memory_limit: 512M
    max_input_time: 120
    upload_max_filesize: 128M
    php_post_max_size: 256M
    curl_version: 7.84.0 OpenSSL/1.1.1p
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true wp-database extension: mysqli
    server_version: 10.5.18-MariaDB-cll-lve
    client_version: 10.5.18-MariaDB
    max_allowed_packet: 1073741824
    max_connections: 350 wp-constants WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/comunica/sanatate-prin-arte.ro/wp-content
    WP_PLUGIN_DIR: /home/comunica/sanatate-prin-arte.ro/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: false
    WP_CACHE: true
    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

    Plugin Author WPCharitable

    (@wpcharitable)

    @georgebaciu thanks for this information!

    So this is a relatively rare issue (apparently even among the WP.org forums) so I spoke with our support team about the error you encountered. The reason why it’s rare is because the error is saying a built-in function to PHP doesn’t exist – a function that is critical to debugging situations. On most installs this would not happen but for some reason on your server it is. It’s encountering that first mention of error_log() because we document certain things when you connect to Stripe for troubleshooting purposes. So this is more of a server/PHP issue then a WPCharitable one.

    1. That being said, the first thing you can try is disabling WP_DEBUG and any debugging on your website. According to the info you provided see if you can edit wp-config.php and make sure these variables are false: WP_DEBUG and WP_DEBUG_LOG (leave WP_DEBUG_DISPLAY false). If you don’t see these variables in your wp-config.php that means either a plugin (not Charitable) is forcing them on or your host is.
    2. If changing that doesn’t work and you have the ability to downgrade your PHP to 7.4, try that. It has worked for some as a temp solution for some.
    3. Most importantly, you might need to contact your hosting company about this. As we said, this is a normal built-in delogging PHP function – it’s possible the hosting company could be deliberately disabling error_log(). Since it’s directly related to PHP, they would be the primary ones to troubleshoot since OTHER plugins have the ability and DO use this function so you might this error eventually if not addressed.

    While the next version of Charitable is adding a few fixes for PHP 8.x, this is NOT related to those and believe this to be a setting that the hosting company should confirm and/or address.

    If you have follow up or any further questions, please let us know.

    Thread Starter georgebaciu

    (@georgebaciu)

    Hello,

    I have tried solutions 1, same result. But solution 2, downgrading to PHP 7.4 worked.

    Thanks a lot.

    Plugin Author WPCharitable

    (@wpcharitable)

    @georgebaciu no problem! Glad moving to PHP 7.4 worked as a current solution. I do urge you to reach out to your host and let them know about this issue (and note the PHP version you experienced in on, as that will be important). Eventually you will need to upgrade to PHP 8.x, and it might be soon depending on what your host decides.

    Have a good day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error connecting to Stripe Account’ is closed to new replies.