Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: mem_postmaster - Postmaster Revamp
candyman wrote:
It seems that the latest version of mem_postmaster causes conflicts with some others plugins option menu in the Extensions panel.
After activating the plugin (not the library), in my case (TXP 4.0.8), the
- rss_admin_db_manager (DB backup menu)
confirmed.
Error in the page:
Fatal error: Cannot redeclare pref_func() (previously declared in /users/home/xxx/web/public/textpattern/lib/txplib_misc.php(594) : eval()'d code:901) in /users/home/xxx/web/public/textpattern/include/txp_prefs.php on line 244
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: mem_postmaster - Postmaster Revamp
@candyman, change the plugin load order so that mem_postmaster is after all of those other plugins.
Offline
Re: mem_postmaster - Postmaster Revamp
Hi Michael
I have changed the plugin’s load order to ‘9’ using plugin composer but the error does not go away.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: mem_postmaster - Postmaster Revamp
- Renamed pref_func().
The problem was caused by many plugins needing to redefine a core function and the other plugins did not properly guard with a function_exists() check. You should contact the plugin authors to get them to properly guard their code.
Offline
Re: mem_postmaster - Postmaster Revamp
Manfre, someone (colak?) alerted me to this problem (with tru_tags
), and per your comment, it looks like I should be protecting a redefine of pref_func()
somehow. But tru_tags
doesn’t redefine, or even call, pref_func()
so I’m not sure what the issue is, or how to fix it. Can you clarify?
Offline
Re: mem_postmaster - Postmaster Revamp
truist wrote:
Manfre, someone (colak?) alerted me to this problem (with
tru_tags
), and per your comment, it looks like I should be protecting a redefine ofpref_func()
somehow. Buttru_tags
doesn’t redefine, or even call,pref_func()
so I’m not sure what the issue is, or how to fix it. Can you clarify?
You are redeclaring pref_func()
. Pref_func()
is a core function, defined in txp_prefs.php
. But, in your plugin you have a line:
include(txpath . '/include/txp_prefs.php');
Which will cause conflicts with any plugin which includes the same file on same page load. To fix this, you can possibly, either use function check, class or include_once.
Offline
Re: mem_postmaster - Postmaster Revamp
Ah, that makes sense. I will fix this in the next version of tru_tags. Thank you!
Offline
Re: mem_postmaster - Postmaster Revamp
You also don’t want to include it when $event == ‘prefs’, since for some reason the core didn’t feel like using the *_once functions in ./textpattern/index.php.
Offline
Re: mem_postmaster - Postmaster Revamp
michael, The update seemed to have worked and the error disappeared.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#46 2009-09-16 11:48:41
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: mem_postmaster - Postmaster Revamp
truist wrote:
Manfre, someone (colak?) alerted me to this problem
It was me.
I agree with colak: the problem was solved with the latest mem_postmaster patch.
Offline
Re: mem_postmaster - Postmaster Revamp
I so much apologise about thsi but I think that I hit another bug.
On the “Editing List: ABC” tab the forms are not recognised. What I get is a pull-down menu with nothing in it. (it is only a few pixels wide). This means that I cannot allocate a form to any new lists.
I have 2 article forms named
- postmaster
- postmaster-default
The existing lists, (Total Lists subtab) indicate the name of the form but when I click to edit the list, nothing appears in the pull down menu.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: mem_postmaster - Postmaster Revamp
colak wrote:
…
From first post:
List Form _New Feature: Select autopopulates with all forms that begin with “newsletter-” or another string you select _
rename your forms so that they begin with newsletter- and they will appear in the list.
Offline