• With ACM installed and trying to create a brand new page, ACM is giving me the following issue:

    PHP Fatal error: Uncaught TypeError: <strong>Argument 1 passed to WPE\\AtlasContentModeler\\ContentRegistration\\handle_content_fields_for_rest_api() must be of the type int, null given, called in /var/www/html/wp-content/plugins/atlas-content-modeler/includes/content-registration/custom-post-types-registration.php on line 67</strong> and defined in /var/www/html/wp-content/plugins/atlas-content-modeler/includes/content-registration/custom-post-types-registration.php:131\nStack trace:\n#0 /var/www/html/wp-content/plugins/atlas-content-modeler/includes/content-registration/custom-post-types-registration.php(67): WPE\\AtlasContentModeler\\ContentRegistration\\handle_content_fields_for_rest_api(NULL, Array, Object(WP_REST_Request))\n#1 /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-controller.php(433): WPE\\AtlasContentModeler\\ContentRegistration\\{closure}(Array, 'acm_fields', Object(WP_REST_Request), 'type')\n#2 /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php(241): WP_REST_Controller->add_additional_fields_ in /var/www/html/wp-content/plugins/atlas-content-modeler/includes/content-registration/custom-post-types-registration.php on line 131, referer: https://localhost:8080/wp-admin/edit.php?post_type=page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Nick C

    (@modernnerd)

    Thank you for this report, @jorgemsilva, and I’m sorry for the error.

    So far I have not been able to reproduce it. I can create pages with ACM active without seeing the fatal error you mention.

    Are you able to share more information about your site setup so I can try again? It would be helpful to have:

    1. The site environment info from Tools → Site Health → Info (click “copy site info to clipboard”, then paste here).
    2. The content of your ACM models export file (generated from Content Modeler → Tools → Export). You can either paste that here in a code block, or as a link to a https://pastebin.com/ URL or similar.

    • This reply was modified 2 years, 2 months ago by Nick C.
    Thread Starter jorgemsilva

    (@jorgemsilva)

    `
    ### wp-core ###

    version: 6.0.2
    site_language: en_US
    user_language: en_US
    timezone: +00:00
    permalink: undefined
    https_status: false
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 1
    dotorg_communication: true

    ### wp-paths-sizes ###

    wordpress_path: /var/www/html
    wordpress_size: 47.20 MB (49495852 bytes)
    uploads_path: /var/www/html/wp-content/uploads
    uploads_size: 449.72 KB (460509 bytes)
    themes_path: /var/www/html/wp-content/themes
    themes_size: 11.53 MB (12089471 bytes)
    plugins_path: /var/www/html/wp-content/plugins
    plugins_size: 10.28 MB (10777711 bytes)
    database_size: 2.78 MB (2916352 bytes)
    total_size: 72.23 MB (75739895 bytes)

    ### wp-active-theme ###

    name: Twenty Twenty-Two (twentytwentytwo)
    version: 1.2
    author: the WordPress team
    author_website: https://www.ads-software.com/
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, block-templates, widgets-block-editor, wp-block-styles, editor-style
    theme_path: /var/www/html/wp-content/themes/twentytwentytwo
    auto_update: Disabled

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

    Twenty Twenty: version: 2.0, author: the WordPress team, Auto-updates disabled
    Twenty Twenty-One: version: 1.6, author: the WordPress team, Auto-updates disabled

    ### wp-plugins-active (3) ###

    Atlas Content Modeler: version: 0.20.0, author: WP Engine (latest version: 0.21.1), Auto-updates disabled
    PublishPress Capabilities: version: 2.5.0, author: PublishPress, Auto-updates disabled
    WP GraphQL: version: 1.9.1, author: WPGraphQL (latest version: 1.10.0), Auto-updates disabled

    ### wp-plugins-inactive (2) ###

    Akismet Anti-Spam: version: 4.2.5, author: Automattic (latest version: 5.0), Auto-updates disabled
    Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled

    ### wp-media ###

    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1691
    imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
    imagick_version: 3.6.0
    file_uploads: File uploads is turned off
    post_max_size: 8M
    upload_max_filesize: 2M
    max_effective_size: 2 MB
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 122 MB
    imagick::RESOURCETYPE_DISK: 1073741824
    imagick::RESOURCETYPE_FILE: 786432
    imagick::RESOURCETYPE_MAP: 512 MB
    imagick::RESOURCETYPE_MEMORY: 256 MB
    imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, 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, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP
    ghostscript_version: 9.53.3

    ### wp-server ###

    server_architecture: Linux 5.4.0-125-generic x86_64
    httpd_software: Apache/2.4.54 (Debian)
    php_version: 7.4.30 64bit
    php_sapi: apache2handler
    max_input_variables: 1000
    time_limit: 30
    memory_limit: 128M
    admin_memory_limit: 256M
    max_input_time: -1
    upload_max_filesize: 2M
    php_post_max_size: 8M
    curl_version: 7.74.0 OpenSSL/1.1.1n
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false

    ### wp-database ###

    extension: mysqli
    server_version: 8.0.27
    client_version: mysqlnd 7.4.30
    max_allowed_packet: 67108864
    max_connections: 151

    ### wp-constants ###

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /var/www/html/wp-content
    WP_PLUGIN_DIR: /var/www/html/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    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: utf8mb4
    DB_COLLATE: undefined

    ### wp-filesystem ###

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

    https://pastebin.com/62tApufs

    Plugin Contributor Nick C

    (@modernnerd)

    Thank you for the additional info, @jorgemsilva.

    I can now reproduce this by creating a model with an ID of ‘type’ containing at least one field.

    I’ll look into this now and update this thread when a fix is available.

    Plugin Contributor Nick C

    (@modernnerd)

    ACM 0.22.0 is out now with a fix for this.

    After updating, your ‘type’ model will be disabled, which will let you create pages again.

    You can then follow these steps to migrate the ‘type’ model to a new ID in order to reactivate it.

    Alternatively, you can delete the ‘type’ model if you’re not using it, or delete and recreate it manually if you don’t need ACM to migrate posts, taxonomies, or related fields linked to the ‘type’ model for you.

    ACM 0.22.0 will also prevent model ID conflicts for future models you create.

    Thanks for your patience while we worked on this. If you need further help please let us know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue when trying to create a page’ is closed to new replies.