Forum Replies Created

Viewing 15 replies - 1 through 15 (of 244 total)
  • Forum: Plugins
    In reply to: [Zotpress] PHP 8.1 errors
    Mark

    (@codeispoetry)

    Cool! @kseaborn I have tested the new code on my production site (PHP version 7.4.33 WP version 6.1.1) and everything works as expected. I have a bunch of other plugins that are not guaranteed to work with PHP 8.1 so I’m not easily able to check it out in 8.1 — so, just a single data point for now!

    Forum: Plugins
    In reply to: [Zotpress] PHP 8.1 errors
    Mark

    (@codeispoetry)

    In case anyone is interested what @kfeuerherm’s patched version looks like, here is a diff shown in a quick zotpress fork on github. I have no intention of further developing this as I lack the JS/PHP programming skills but I wanted a quick way to see what this automatic tool would change.

    Have to say I’m quite impressed by the rector documentation.

    Thread Starter Mark

    (@codeispoetry)

    Excellent, yes! I look forward to the next release.

    The second part of my suggestion was about installation instructions here in the plugins repository, which currently are only the boilerplate stuff used for any plugin. I often look at that page prior to installing a new plugin to see roughly what’s involved.

    Thanks for creating this plugin!

    Mark

    (@codeispoetry)

    As to controlling what gets pushed, I think it would be great to tap into WordPress taxonomies for that — e.g. everything gets pushed by default, but the ActivityPub settings page might have a setting to exclude posts with a certain tag or category, or alternatively, to only push items with that tag/category.

    Mark

    (@codeispoetry)

    Happy to have found this thread and to see ActivityPub is under active development. I’ll await the new username editing support as I was running into the same issues — I’m the sole author on my blog but don’t necessarily want to expose the username; rather I want sth like blog@domain.com to be the fediverse profile name people.

    Mark

    (@codeispoetry)

    Yes I think that would work. It’s easy to then prompt ZotPress to display that collection on a particular post or page related to the article.

    Mark

    (@codeispoetry)

    At risk you’re not seeing this very late answer: It can be used for this kind of purpose, even with your personal library, but I would set up a group library. If you have a group library for the journal, with a master inventory of cited works, grouped into collection per article in which they are cited, then you could use ZotPress shortcodes to display the respective collections on each individual article page.

    Thread Starter Mark

    (@codeispoetry)

    Mark

    (@codeispoetry)

    What happens if you try simpler shortcodes, e.g. a single item without specifying a format?

    Thread Starter Mark

    (@codeispoetry)

    Well that explains it I guess. (Though shouldn’t checking the “Matomo Super User” role then still have had an effect? I.e. if I check the roles my admin account has, superuser_matomo is there, and on the Matomo exclusions page, I’ve checked “Matomo Superuser” alongside all others. It is very counterintuitive if even that doesn’t work.)

    Anyway glad to see a fix is on the way!

    Thread Starter Mark

    (@codeispoetry)

    Curious what your thoughts are! Also I can add a Matomo user on the site if that’s useful for diagnostics.

    Thread Starter Mark

    (@codeispoetry)

    
    
    # Matomo
    
    * Matomo Plugin Version: 4.4.2
    * Config exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/config/config.ini.php" )
    * JS Tracker exists and is writable.: Yes ("$abs_path/wp-content/uploads/matomo/matomo.js" )
    * Plugin directories: Yes ([{"pluginsPathAbsolute":"$abs_path\/wp-content\/plugins\/matomo\/plugins","webrootDirRelativeToMatomo":"..\/"}])
    * Tmp directory writable: Yes ($abs_path/wp-content/uploads/matomo/tmp)
    * Matomo Version: 4.4.1
    * Matomo Blog idSite: 1
    * Matomo Install Version: No (Install date: 2020-05-05 10:19:55)
    * Upgrades outstanding: No
    * Upgrade in progress: No
    
    ## Endpoints
    
    * Matomo JavaScript Tracker URL:  ($site_url/wp-content/uploads/matomo/matomo.js)
    * Matomo JavaScript Tracker - WP Rest API:  ($site_url/wp-json/matomo/v1/hit/)
    * Matomo HTTP Tracking API:  ($site_url/wp-content/plugins/matomo/app/matomo.php)
    * Matomo HTTP Tracking API - WP Rest API:  ($site_url/wp-json/matomo/v1/hit/)
    
    ## Crons
    
    * Server time: 2021-09-30 04:28:02
    * Blog time: 2021-09-30 06:28:02 (Below dates are shown in blog timezone)
    * Sync users & sites: Next run: 2021-09-30 10:19:54 (3 hours 51 min) ( Last started: 2021-09-29 10:20:33 (-20 hours 7 min). Last ended: 2021-09-29 10:20:33 (-20 hours 7 min). Interval: daily)
    * Archive: Next run: 2021-09-30 06:55:58 (27 min 56s) ( Last started: 2021-09-30 06:07:51 (-20 min 11s). Last ended: 2021-09-30 06:08:07 (-19 min 55s). Interval: hourly)
    * Update GeoIP DB: Next run: 2021-10-27 10:19:54 (27 days 3 hours) ( Last started: 2021-09-27 10:22:53 (-2 days 20 hours). Last ended: 2021-09-27 10:22:57 (-2 days 20 hours). Interval: matomo_monthly)
    
    ## Mandatory checks
    
    * PHP version >= : ok 
    * PDO extension: ok 
    * PDO\MYSQL extension: ok 
    * MYSQLI extension: ok 
    * Other required extensions: ok 
    * Required functions: ok 
    * Required PHP configuration (php.ini): ok 
    * Directories with write access: ok 
    
    ## Optional checks
    
    * Tracker status: ok 
    * Memory limit: ok 
    * Time zone: ok 
    * Open URL: ok 
    * PageSpeed disabled: ok 
    * GD > 2.x + Freetype (graphics): ok 
    * Other extensions: ok 
    * Warning Other functions: warning  (shell_exec You need to enable this built-in function. set_time_limit On a high traffic website, executing the archiving process may require more time than currently allowed. If necessary, change the max_execution_time directive in your php.ini file. mail parse_ini_file glob gzopen md5_file )
    * Filesystem: ok 
    * Last Successful Archiving Completion: ok 
    * Database abilities: ok 
    * Warning Max Packet Size: warning  (It is recommended to configure a 'max_allowed_packet' size in your MySQL database of at least 64MB. Configured is currently 16MB. )
    * Geolocation: ok 
    * Update over HTTPS: ok 
    * Supports Async Archiving: No
    * Location provider ID: geoip2php
    * Location provider available: Yes
    * Location provider working: Yes
    * Had visit in last 5 days: Yes
    * Matomo URL: Yes ($site_url/wp-content/plugins/matomo/app/)
    
    ## Matomo Settings
    
    * Track mode: default
    * Track codeposition: footer
    * Track api endpoint: default
    * Track js endpoint: default
    * Version history: 4.4.2, 4.4.1, 4.3.1, 4.3.0, 4.2.0
    * Core version: 4.4.1
    * Last tracking settings update: 1631886524
    * Last settings update: 1632911522
    * Show get started page: 0
    * Track ecommerce: No
    * Track 404: Yes
    * Delete all data uninstall: No
    
    ## Logs
    
    * None: 
    
    # WordPress
    
    * Home URL: $site_url
    * Site URL: $site_url
    * WordPress Version: 5.8.1
    * Number of blogs: 5
    * Multisite Enabled: Yes
    * Network Enabled: Yes
    * WP_DEBUG: No
    * WP_DEBUG_DISPLAY: Yes
    * WP_DEBUG_LOG: No
    * DISABLE_WP_CRON: -
    * FORCE_SSL_ADMIN: Yes
    * WP_CACHE: No
    * CONCATENATE_SCRIPTS: -
    * COMPRESS_SCRIPTS: -
    * COMPRESS_CSS: -
    * ENFORCE_GZIP: -
    * WP_LOCAL_DEV: -
    * WP_CONTENT_URL: $site_url/wp-content
    * WP_CONTENT_DIR: $abs_path/wp-content
    * UPLOADS: -
    * BLOGUPLOADDIR: -
    * DIEONDBERROR: -
    * WPLANG: -
    * ALTERNATE_WP_CRON: -
    * WP_CRON_LOCK_TIMEOUT: 60
    * WP_DISABLE_FATAL_ERROR_HANDLER: -
    * MATOMO_SUPPORT_ASYNC_ARCHIVING: -
    * MATOMO_TRIGGER_BROWSER_ARCHIVING: -
    * MATOMO_ENABLE_TAG_MANAGER: -
    * MATOMO_SUPPRESS_DB_ERRORS: -
    * MATOMO_ENABLE_AUTO_UPGRADE: -
    * MATOMO_DEBUG: -
    * MATOMO_SAFE_MODE: -
    * MATOMO_GLOBAL_UPLOAD_DIR: -
    * MATOMO_LOGIN_REDIRECT: -
    * Permalink Structure: /blog/%postname%/
    * Possibly uses symlink: No
    * Upload base url: $site_url/wp-content/uploads
    * Upload base dir: $abs_path/wp-content/uploads
    * Upload url: $site_url/wp-content/uploads/2021/09
    * Custom upload_path: 
    * Custom upload_url_path: 
    * Compatible content directory: Yes
    
    # WordPress Plugins
    
    * Akismet Anti-Spam: 4.1.12
    * Altmetric embeds: 0.0.7
    * Download Monitor: 4.4.4
    * Google XML Sitemaps: 4.1.1
    * Hide WP Toolbar: 2.4.2
    * Matomo Analytics - Ethical Stats. Powerful Insights.: 4.4.2
    * Multisite Enhancements: 1.6.1 (Network enabled)
    * Simple Lightbox: 2.8.1
    * User Activation Keys: 4.6 (Network enabled)
    * User Role Editor: 4.60.2
    * Widget Logic: 5.10.4
    * WP Fastest Cache: 0.9.4
    * Zotpress: 7.2
    * Active Plugins: 2 (Altmetric-WordPress-Plugin-master download-monitor)
    * Theme: primer
    
    # Server
    
    * Server Info: Apache
    * PHP OS: Linux
    * PHP Version: 7.4.21
    * PHP SAPI: fpm-fcgi
    * PHP Binary Name: php-fpm
    * PHP Error Reporting: 0 After bootstrap: 0
    * Timezone: UTC
    * WP timezone: Europe/Amsterdam
    * Locale: en_GB
    * User Locale: en_GB
    * Memory Limit: 256M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
    * WP Memory Limit: 256M
    * WP Max Memory Limit: 256M
    * Timezone version: 2021.1
    * Time: 1632976082
    * Max Execution Time: 120
    * Max Post Size: 128M
    * Max Upload Size: 32768000
    * Max Input Vars: 5000
    * Disabled PHP functions: Yes (apache_child_terminate,apache_get_modules,apache_note,apache_setenv,dl,exec,passthru,shell_exec,opcache_reset,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,popen,pclose,virtual,set_time_limit,posix_access,posix_ctermid,posix_get_last_error,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_initgroups,posix_isatty,posix_kill,posix_mkfifo,posix_mknod,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname,posix_setrlimit,lchgrp,lchown,lstat,symlink,link,readlink,linkinfo,syslog,openlog,closelog,pfsockopen)
    * zlib.output_compression is off: Yes
    * Curl Version: 7.52.1, OpenSSL/1.0.2u
    * Suhosin installed: No
    
    # Database
    
    * MySQL Version: 5.5.5
    * Mysqli Connect: Yes
    * Force MySQL over Mysqli: No
    * DB Prefix: wp_
    * DB CHARSET: utf8
    * DB COLLATE: 
    * SHOW ERRORS: No
    * SUPPRESS ERRORS: No
    * Uses Socket: No
    * Uses IPv6: No
    * Matomo tables found: 146
    * DB tables exist: Yes
    * Matomo users found: 1
    * Matomo sites found: 1
    * Required permissions: OK
    
    # Browser
    
    * Browser:  (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36)
    * Language: en,nl,en-us,de,vi
    
    
    Thread Starter Mark

    (@codeispoetry)

    Here’s what the source says:

    1. I’m logged in:
    <body class="page-template-default page page-id-2 page-parent logged-in admin-bar no-customize-support page-publications site-id-1 custom-header-image layout-two-column-default">

    2. I see the following Matomo code:

    <!-- Matomo --><script type="text/javascript">
    var _paq = window._paq = window._paq || [];
    _paq.push(['setDownloadClasses', "zp-DownloadURL"]);
    _paq.push(['setLinkClasses', "zp-doi-link"]);_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);_paq.push(['alwaysUseSendBeacon']);_paq.push(['setTrackerUrl', "https:\/\/my-site.com\/wp-content\/plugins\/matomo\/app\/matomo.php"]);_paq.push(['setSiteId', '1']);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.src="https:\/\/my-site.com\/wp-content\/uploads\/matomo\/matomo.js"; s.parentNode.insertBefore(g,s);
    </script>
    <!-- End Matomo Code -->

    Also, it is a WordPress multisite install in case that matters.

    • This reply was modified 1 year, 4 months ago by Mark.
    Thread Starter Mark

    (@codeispoetry)

    (should add: latest WP & Matomo versions)

    Mark

    (@codeispoetry)

    Am really hoping @kseaborn is open to contributions of this kind! I might have some small contributions to make as well.

Viewing 15 replies - 1 through 15 (of 244 total)