GithubHelp home page GithubHelp logo

bramley / phplist-plugin-common Goto Github PK

View Code? Open in Web Editor NEW
13.0 7.0 5.0 2.42 MB

Supporting classes for the Message Statistics and other plugins for phplist version 3.x

PHP 98.57% JavaScript 0.75% CSS 0.68%
phplist php

phplist-plugin-common's Issues

missing static method usePanel?

Hello,
first things first: thanks for the plugins ๐Ÿ‘
I am having some issues in using the messagestatistics plugin with this common plugin.
When I try to get to the section, from the main menu, I get an error
clipboard01

I can't find the method.
Am I missing anything?

Thanks in advance :)

[Question] Compatibility with PHP v7.1

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 !

PHP 7.1 compat error

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?

reference page on phplist.com out-of-date

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.

Compatibility issue for v3.6.10

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

Greek alphabet strings in attribute titles are mangled when truncated due to substr()

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

if (strlen($name) > $attrNameLength) {
$leftLength = (int) ($attrNameLength / 2);
$rightLength = $attrNameLength - $leftLength - 1;
$name = substr($name, 0, $leftLength) . 'โ€ฆ' . substr($name, -$rightLength);
}

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:

subscribers_screen1

PHPlist crashes after installing phplist-plugin-common

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.

Fatal error: Uncaught Error: Class "WebblerTabs" & "WebblerListing" not found

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
{
}

Breaking changes CampaignsPlugin

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..

parse error

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?

PHP 8.1 dependency

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.

Getting ERROR 500 after activate

Hello,

My PHPList installation goes to ERROR 500 after activating Plugin Common.

Fresh installation from TurnKey, PHPList version 3.6.4 :

php -v

PHP 7.3.29-1deb10u1 (cli) (built: Jul 2 2021 04:04:33) ( NTS )
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
deb10u1, Copyright (c) 1999-2018, by Zend Technologies

Any advice ?

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.