bramley / phplist-plugin-common Goto Github PK
View Code? Open in Web Editor NEWSupporting classes for the Message Statistics and other plugins for phplist version 3.x
Supporting classes for the Message Statistics and other plugins for phplist version 3.x
Hello ! Sorry, this is probably a stupid question since the README says "Requires php version 5.4 or later.", but I just need to be sure. Is this plugin fully compatible with PHP 7.1 ?
I'm upgrading my server and it looks like phplist is having trouble importing/using it.
Thanks !
Hey @bramley,
After upgrading from 3.15.7 to 3.17.0 I get the following Composer error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".
Obviously I am not running PHP 7.4, I am running PHP 7.1. What was the major change that caused the plugin to stop working in 7.1? Was it due to the emogrifier update or some other dependency update perhaps? Can this be remedied?
The "depends: php 5.6" tag on the phplist website for this plugin needs updating (https://resources.phplist.com/plugin/common).
I updated the plugin today on my php 5.6 install.
My install of PHPList still allowed this plugin to update despite the dependency of php 7.1 not being met on my server running php 5.6, and it broke my install, just leaving me with an error message about php 7.1.
I get the below error even though its version is 3.6.10
Dependency check Plugin can not be enabled.
Failure on system requirement phpList version 3.3.2 or later
Need support for utf characters in pdf reports.
There is a version of fpdf with support utf: http://www.fpdf.org/en/script/script92.php
Hey @bramley,
I just posted a pull request on a similar issue in the phplist3 repo but I also see the same problem with Greek characters in advanced search of the Subscribers plugin. Attributes in the Greek alphabet are getting mangled when the system thinks it should truncate the attribute title.
I located the truncating code in
phplist-plugin-common/plugins/Common/DAO/AttributeTrait.php
Lines 75 to 79 in 736cf14
Maybe doing a check if the mb_ equivalent functions are present and if so using those would be sufficient. Something along the lines phplist core does in lib.php.
Screenshot of how it looks like currently:
I am running phpList ltd. - v3.0.12
Installed several plugins from within the "Manage Plugins" page and they seem to work well.
When I installed the Segment Plugin https://github.com/bramley/phplist-plugin-segment/archive/master.zip, got a confirmation, then clicked "continue" button, phplist wouldn't load at all. No newsletters page and no admin page.
I had to use the cpanel file manager to remove the plugin folder and file.
went back into phplist and tried a couple of different statistics which worked, then one didn't:
I was trying "Bounced Domains" menu, and got the error "phplist-plugin-common must be installed and enabled to use this plugin". Searched on google and found this page: https://github.com/bramley/phplist-plugin-common which specifies the plugin location as: https://github.com/bramley/phplist-plugin-common/archive/master.zip
Installed from the "Manage Plugins" menu, clicked "continue", got a blank page, wiated 10 seconds and clicked F5 and now it worked, I enabled the plugin. Trying Bounced Domains again, got a blank page, then phplist wouldn't work at all.
Restarting firefox didn't help, and Chrome is showing the same behavior.
Removed the Common plug-in using cpanel.
Thanks for helping.
Upon upgrading the plugin to the most recent version, 3.32.0+20231221, PHPList goes blank! After enabling the error reporting, as described here https://www.phplist.org/manual/books/phplist-manual/page/troubleshooting-techniques, the following errors can be captured:
Fatal error: Uncaught Error: Class "WebblerTabs" not found in /www/phpList/3.6.14/lists/admin/plugins/Common/Tabs.php:22 Stack trace: #0 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(578): include() #1 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(432): Composer/Autoload/ClassLoader::Composer/Autoload/{closure}('/www/php...') #2 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/CommonPlugin_XXX.php(94): Composer/Autoload/ClassLoader->loadClass('phpList/plugin/...') #3 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(578): include('/www/php...') #4 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(432): Composer/Autoload/ClassLoader::Composer/Autoload/{closure}('/www/php...') #5 /www/phpList/3.6.14/lists/admin/plugins/BounceStatisticsPlugin.php(70): Composer/Autoload/ClassLoader->loadClass('CommonPlugin_I1...') #6 /www/phpList/3.6.14/lists/admin/pluginlib.php(163): BounceStatisticsPlugin->activate() #7 /www/phpList/3.6.14/lists/admin/connect.php(81): include_once('/www/php...') #8 /www/phpList/3.6.14/lists/admin/index.php(106): require_once('/www/php...') #9 {main} thrown in /www/phpList/3.6.14/lists/admin/plugins/Common/Tabs.php on line 22
Fatal error: Uncaught Error: Class "WebblerListing" not found in /www/phpList/3.6.14/lists/admin/plugins/Common/WebblerListing.php:20 Stack trace: #0 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(578): include() #1 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(432): Composer/Autoload/ClassLoader::Composer/Autoload/{closure}('/www/php...') #2 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/CommonPlugin_XXX.php(97): Composer/Autoload/ClassLoader->loadClass('phpList/plugin/...') #3 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(578): include('/www/php...') #4 /www/phpList/3.6.14/lists/admin/plugins/CommonPlugin/vendor/composer/ClassLoader.php(432): Composer/Autoload/ClassLoader::Composer/Autoload/{closure}('/www/php...') #5 /www/phpList/3.6.14/lists/admin/plugins/BounceStatisticsPlugin.php(70): Composer/Autoload/ClassLoader->loadClass('CommonPlugin_I1...') #6 /www/phpList/3.6.14/lists/admin/pluginlib.php(163): BounceStatisticsPlugin->activate() #7 /www/phpList/3.6.14/lists/admin/connect.php(81): include_once('/www/php...') #8 /www/phpList/3.6.14/lists/admin/index.php(106): require_once('/www/php...') #9 {main} thrown in /www/phpList/3.6.14/lists/admin/plugins/Common/WebblerListing.php on line 20
Removing the following lines/blocks from /CommonPlugin_XXX.php file, allows PHPList to load again, but I am not sure if it will be fully functional as intended.
lines 94 to 96
class CommonPlugin_Tabs extends phpList\plugin\Common\Tabs
{
}
lines 100 to 102
class CommonPlugin_WebblerListing extends phpList\plugin\Common\WebblerListing
{
}
Latest changes to the plugin v3.23.1 where you set function signature breaks the plugin CampaignsPlugin v2.4.0 functionality.
PHP Fatal error: Declaration of Mouf\Picotainer\Picotainer::has(string $identifier): bool must be compatible with Psr\Container\ContainerInterface::has($id) in /opt/phplist/plugins/CommonPlugin/vendor/mouf/picotainer/src/Picotainer.php on line 67
The solution for this issue for me was reinstalling version 3.23.0..
I get PHP Parse error: syntax error, unexpected 'List' (T_LIST), expecting identifier (T_STRING) in phplist-plugin-common/plugins/Common/DAO/List.php on line 23
I guess the word "list" is reserved.
Is this going to cause problems?
The action on 8.1 fails https://github.com/phpList/phplist3/actions/runs/3276311183/jobs/5392220257
It's this error.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- pelago/emogrifier is locked to version v5.0.1 and an update of this package was not requested.
- pelago/emogrifier v5.0.1 requires php ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 -> your php version (8.1.0) does not satisfy that requirement.
Problem 2
- pelago/emogrifier v5.0.1 requires php ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 -> your php version (8.1.0) does not satisfy that requirement.
- bramley/phplist-plugin-common dev-master requires pelago/emogrifier ^5.0.1 -> satisfiable by pelago/emogrifier[v5.0.1].
- bramley/phplist-plugin-common is locked to version dev-master and an update of this package was not requested.
It seems emogrifier needs bumping to 7.0 to pass on PHP8.2
https://github.com/bramley/phplist-plugin-common/blob/master/composer.json#L24
https://github.com/phpList/phplist3/actions/runs/3867541447/jobs/6592386512#step:7:46
Hello,
My PHPList installation goes to ERROR 500 after activating Plugin Common.
Fresh installation from TurnKey, PHPList version 3.6.4 :
PHP 7.3.29-1deb10u1 (cli) (built: Jul 2 2021 04:04:33) ( NTS )deb10u1, Copyright (c) 1999-2018, by Zend Technologies
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.29-1
Any advice ?
Regards
I am on phpList 3.6.14. How do i enable Common plugin?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.