[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4761: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
phplist forums • View topic - [plugin] EnhancedPlaceholders: Add more placeholders

[plugin] EnhancedPlaceholders: Add more placeholders

3rd party code for phpList

[plugin] EnhancedPlaceholders: Add more placeholders

Postby drmike » 7:54pm, Mon 18 Oct, 2010

Last edited by drmike on 7:45pm, Mon 10 Oct, 2011, edited 10 times in total.
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby pbraconnot » 5:53pm, Mon 15 Nov, 2010

Hi, nice work but I have this error when cueing, no message sent:

Started
Sending in batches of 30 emails
Processing has started, 2 message(s) to process.
Please leave this window open. You have batch processing enabled, so it will reload several times to send the messages. Reports will be sent by email to my@email.com
Processing message 46
Looking for users
Found them: 1 to process
Script stage: 4
Finished, Nothing to do
Finished, All done

my system
# phplist version: 2.10.12
# PHP version: 5.2.14
# Browser: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
# Webserver: Apache
# Mysql Info: 5.1.49-gpl-log
# PHP Modules:
pbraconnot
phpLister
 
Posts: 9
Joined: 3:04pm, Thu 11 Nov, 2010

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 6:32pm, Mon 15 Nov, 2010

This may have to do with the fact that phpList will not send the same message twice to the same recipient, except under the specific option to do so. I frequently ran into this feature when testing what I did and had to create a new message for each test.
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby pbraconnot » 8:16pm, Mon 15 Nov, 2010

I can see default plugins beside default placeholers in the admin page but defaut placeholers is giving these errors on top of the admin page when present in plugins folder:

Notice: Undefined index: database_connection in /home/.../lists/admin/mysql.inc on line 113

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/.../lists/admin/mysql.inc on line 113

Notice: Undefined index: database_connection in /home/.../lists/admin/mysql.inc on line 115

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/.../lists/admin/mysql.inc on line 52

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/.../lists/admin/mysql.inc on line 168

and more...

thanks
pbraconnot
phpLister
 
Posts: 9
Joined: 3:04pm, Thu 11 Nov, 2010

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 8:41pm, Mon 15 Nov, 2010

This would appear to be something related to your configuration parameters for MySQL (lines 21-31 of ...lists/config/config.php), rather anything related to the plugin.
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby pbraconnot » 8:53pm, Mon 15 Nov, 2010

Hi, thanks for the quick response,

I don't think it is the MySql configuration, PHP List is working normal without Enhanced Placeholders Plugin. these errors show only when the plugin is enabled.

Also the messages get stuck in cue status "submitted" but never come.

I am making new messages each time and the script level 4 message still appearing.
pbraconnot
phpLister
 
Posts: 9
Joined: 3:04pm, Thu 11 Nov, 2010

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby pbraconnot » 9:39pm, Mon 15 Nov, 2010

commented line 49 in enhancedPlaceholers.php and errors are gone

// error_reporting(E_ALL | E_STRICT);

still trying to make it work though, this plugin hangs the cue.
pbraconnot
phpLister
 
Posts: 9
Joined: 3:04pm, Thu 11 Nov, 2010

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 4:37am, Tue 16 Nov, 2010

Are you using PHP 5 and MySQL 5? I developed the plugin in that environment. Perhaps earlier version of PHP and/or MySQL do not play well with it. It has also only been tested with phpList 2.10.12. Perhaps it does not work with the version you are using...
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby duncanc » 1:48pm, Sat 27 Nov, 2010

duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby boxbreak » 9:17pm, Tue 14 Jun, 2011

boxbreak
phpLister
 
Posts: 7
Joined: 3:34pm, Thu 13 Aug, 2009

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby duncanc » 7:31am, Thu 16 Jun, 2011

I found the same problems that you describe and also the mysql error messages reported by other posters.

I have made some fixes for those problems and, to solve the mysql error messages, restructured the plugin into two classes, one for the admin and the second for the population of placeholders when a message is sent. The version works fine for me, let me know if you want to try it.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby boxbreak » 11:12am, Thu 16 Jun, 2011

Absolutely! Please post here.
boxbreak
phpLister
 
Posts: 7
Joined: 3:34pm, Thu 13 Aug, 2009

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby duncanc » 7:50pm, Thu 16 Jun, 2011

Attachments
EnhancedPlaceholders.zip
(8.76 KiB) Downloaded 492 times
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby boxbreak » 8:06pm, Thu 16 Jun, 2011

boxbreak
phpLister
 
Posts: 7
Joined: 3:34pm, Thu 13 Aug, 2009

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby duncanc » 9:15pm, Thu 16 Jun, 2011

From the references to line numbers 78 and 80 in file enhancedPlaceholdersAdmin.php it looks like you are still using the old version.

Possibly you did not install the new version correctly. Copy the zip file to your plugins directory and then expand in that directory. Then should have
enhancedPlaceholders.php
directory enhanced_placeholders containing
main.php
enhancedPlaceholdersPopulate.php
enhancedPlaceholdersAdmin.php
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Next

Return to Contributions: Plug-ins, Add-ons, Mods

Who is online

Users browsing this forum: No registered users and 1 guest