jonga1306
Forum Replies Created
-
OK…
Have fixed typo but strangely now getting this warning message in the WP dashboard:-
The plugin generated 314 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
Also, when I did get the Members List plugin enabled and tried to add new post on WPUF, got the error pop up but can’t copy/paste text here so have emailed screen grab.
I’ve also attached the debug.log as I’ve only just enabled it.
Arrrrrghhh! This is getting annoying now…!
I’ve resolved the undefined variable error warning for s2member.
Now, having checked all of your points above, I am confident there is no server-wide php error_reporting enabled and I can’t find any declarations in the theme folder. Plugins however, there may still be an issue.
With WP_DEBUG enabled, the DEBUG plugin is now not reporting any issues other than a notice which I don’t think is affecting anything.
However, Members List won’t activate due to the error in the post above which I can’t resolve without reverting to the original code (which then still has WPUF issues), and the other Members plugin (AMR Users) is not showing errors in the debug console but is in the Firebug one. I’ve emailed you the Firebug output.
The plot thickens….
Hi prof,
Thanks so much for all of this. I’ve edited the code as you have suggested for the search and sort.php files – however it now won’t activate the plugin and states:-
Parse error: syntax error, unexpected '{' in /home/culture/public_html/wp-content/plugins/members-list/core/search.php on line 30
What I’d really like to do is resolve this issue with the theme error reporting as you have predicted, I’ve searched the theme folder for the function ini_set and error_reporting but have had no results so not sure whether that is the problem.
I have also spoken to my server administrator and he has indicated that warnings for notices were enabled on the main php config so this could have caused / be causing the problem. I’ll keep testing and report back.
Thanks again.
Answers to questions:
1) Hotnews v 1.0.0
2) Members List active with the default WordPress theme does not cause any problems with the other plugins.
3) Interestingly, with Frontend deactivated, the 3rd party plugins are OK even with Members List active.
Server error log is empty but the debug is throwing up some interesting bits…
Notice: Undefined index: page in /home/mysite/public_html/wp-content/plugins/members-list/core/search.php on line 30 Notice: Undefined index: page in /home/mysite/public_html/wp-content/plugins/members-list/core/sort.php on line 30 Notice: Undefined variable: cache_needs_updating in /home/mysite/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php on line 94
Also
WARNING: wp-includes/class-wp.php:402 - Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/members-list/core/search.php:30) WARNING: wp-includes/functions.php:888 - Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/members-list/core/search.php:30)
Having disabled Members List and enabled the other plugin AMR users, I get S2 Member errors only:-
WARNING: wp-includes/class-wp.php:402 - Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php:94) WARNING: wp-includes/functions.php:888 - Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php:94)
Does this shed any light to you?
I’ve installed new themes to test this with and am NOT having the same problems, which means that it must be a theme issue. I’m using HotNews by Envato / Theme Forest.
Following your recommendation to try to the new development fork 4.4 – I’ve tried it but with no luck.
I also scrapped Members List and tried an alternative: https://www.ads-software.com/support/plugin/amr-users/
This is actually a better plugin and more customisable BUT…
I’m getting pretty much the same problems now when this other plugin is active.
– WPUF Upload Image returns -200 error.
– WPUF Submit hangs on please wait and console shows the old admin-ajax.php error. Also – since 4.4 I get a popup message with 4 lines showing:-AjaxForm Error,
Status:Error,
Error: Internal Server Error,
Response:Two other plugins (at least) are affected:-
– Event Manager which has very similar issues on the upload form (frontend)
– WYSIJA newsletters on the back end hangs on saving edits to newsletters.
All these issues have 1 common denominator – admin-ajax.php with jquery line 2 are reported as the error in the console.
So it seems that these members plugins must be doing something which breaks ajax functionality across other plugins. What that is exactly, I sadly have no idea!
Forum: Plugins
In reply to: [Members List Plugin] WP 3.5.1 breaks Member PluginI’ve got a problem with 3.5.1 too.
Members List now causes conflicts with other plugins. Members List works ok but I have been using a front end posting plugin (WordPress User Frontend) and also WYSIJA newsletters and now these plugins are throwing generic errors with submitting of forms and inline uploading of images.
The console seems to imply issues with ajax queries via admin-ajax.php and throws a jquery error.
Plugin needs updating to work properly with 3.5.1 asap as at the moment I have to disable it to prevent conflicts with other plugins.
Have followed the steps as you suggest and had already been debugging via CONSOLE (hence the line 2 of jquery discovery!) – the NET result has come back and I have exported. I could send it to you if it is likely to be of use for any purpose but as I said, this is a conflict more than a WPUF issue so I guess it could be out of your remit!
I’ve just done a ‘view source’ on my front page and see the following list of jquery scripts below – is it normal to have this many sub-declarations? The site does have a lot of plugins but I’m not quite sure how the enqueue_scripts system works in wordpress and how I’d go about debugging jquery issues.
Are you suggesting I update the main jquery.js script (the first in the list below)?
I’ve seen the part in the thread you linked me to where you mention that 3.5.1 needs jquery 1.9.2 – however I’m not sure where to fix this from the Members List plugin – I found this….
function tern_wp_members_js() { if(!is_admin()) { wp_enqueue_script('members-list',get_bloginfo('wpurl').'/wp-content/plugins/members-list/js/scripts.js',array('jquery')); } }
in a section of the plugin core files. Any thoughts on this? I know strictly speaking this is a query on a different plugin but whatever this plugin is doing wrong regarding its’ jquery declarations, it is stopping WPUF from working – this seems the only affected plugin.
Here is the list of scripts in my source…
<script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.sortable.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.resizable.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.draggable.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.button.min.js?ver=1.9.2'></script> <script type='text/javascript' src='https://www.culture.info/wp-includes/js/jquery/ui/jquery.ui.dialog.min.js?ver=1.9.2'></script>
<script type=’text/javascript’ src=’https://www.culture.info/wp-content/themes/hotnews/javascripts/jquery.sharrre-1.3.3.min.js?ver=1.3.3′></script>
I am happy to take your advice and revert to making the whole site SSL. I will use the htaccess option.
Thanks again.
This probably has to do with the fact I don’t use https on every page. I HAD enabled https on transactional / submission pages but not on every page. Therefore I had used admin_url() for forcing admin pages to use SSL. I can make the whole site SSL (is that the solution you are suggesting?) but I have found that by making the page with the add-post shortcode https, this resolves the issue.
What do you advise?
I thought that was the log with the ‘cheating?’ message? was it not?
If not I may have to regenerate it.
Hi prof,
In terms of the X-Frame-Options error:
Load denied by X-Frame-Options: https://mysite/wp-admin/admin-ajax.php does not permit cross-origin framing.
which I was seeing in the Firebug console when trying to submit a post using WPUF, the fix was to add the following line to the file admin-ajax.php after the opening PHP tag:
header('X-Frame-Options: GOFORIT');
Then, to resolve the error where I was receiving a ‘Cheating?’ message when submitting (which was the next error after the fix above), I realised that my configuration was throwing an error due to me not using SSL on the submission page. I changed this so that the WPUF Add post and edit post pages now use SSL and this resolved the error.
The exact route cause of the second part I am unsure but I have sent you the console log for the non-http submission so if anything crops up please do let me know.
I will email you my two firebug exports – one with http and one without in case this helps with more specific debugging issues.
Thanks.
Right,
I have had a break through.
I have not been using SSL on all the pages of the site other than for payment or sensitive data. Therefore the site has mainly been using http with https hyperlinks and overides for particular pages only.
Having set to use https on the WPUF add item page, this seems to have resolved the ‘cheating?’ issue and the fix in your post above seems to have resolved the X-Frame problem.
I need to spend a bit more time testing to ensure that the problem is resolved but we seem to have at least made a move in the right direction and hopefully this will be resolved.
Thanks for your help so far.