dozza
Forum Replies Created
-
Forum: Reviews
In reply to: [Advanced Custom Fields (ACF®)] If you're a beginner AVOID this.Maybe install Gravity Forms to develop a front-end form. ACF is maybe a bit full-on for what you’re trying to achieve (hammer>nut?). Don’t knock the developer because you chose the wrong solution.
photocrati
I’ve been contacted by our hosts with the following update that looks like there is still a problem….
——————————
It appears that the following file in your web package (plugin.php) is still causing the log files to be too large due to the error given here:
mysite.uk [Sat Oct 19 14:05:37 2013] [error] [client 66.249.73.182:62672] AH01215: PHP Warning: next() expects parameter 1 to be array, integer given in /home/sites/mysite.uk/public_html/wp-includes/plugin.php on line 408
mysite.uk [Sat Oct 19 14:05:37 2013] [error] [client 66.249.73.182:62672] AH01215: PHP Warning: current() expects parameter 1 to be array, integer given in /home/sites/mysite.uk/public_html/wp-includes/plugin.php on line 404The issue here looks to be a small chunk of code between lines 408 and 404 shown below:
do {
foreach ( (array) current($wp_filter[$tag]) as $the_ )
if ( !is_null($the_[‘function’]) )
call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’]));} while ( next($wp_filter[$tag]) !== false );
The reason for this error is that the file is looking for an array given $wp_filter[$tag] but is recognising this as an integer and not as an array which the code requires. What I would recommend here either looking into to sorting this error on this file shown above or simply remove this file in order to prevent this error showing.
————————————-
Are you able to look into this for us? Can I comment out this section of code or remove plugin.php? Id doubt I can do either. Is there an error in the code that you can fix?
Our hosts pointed out a 25Gb log file and the causative error being…
mysite.uk [Tue Oct 22 12:12:35 2013] [error] [client 66.249.73.182:56043] AH01215: PHP Warning: current() expects parameter 1 to be array, integer given in /home/sites/mysite.uk/public_html/wp-includes/plugin.php on line 404
mysite.uk [Tue Oct 22 12:12:35 2013] [error] [client 66.249.73.182:56043] AH01215: PHP Warning: next() expects parameter 1 to be array, integer given in /home/sites/mysite.uk/public_html/wp-includes/plugin.php on line 408Interestingly they prevented it growing bigger by adding the following line to the local root php.ini file:
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
On updating all plugins to latest (NG=2.033 & WPSEO=1.4.18) the errors are no longer being generated.
That is exactly what I need.
Imagine a small company using a private area of their WP site for internal documents, policies and newsletters. When staff upload a new version of these files, all staff need to be made aware of it. That’s why I’m looking at your product as a solution and think it is the best fit out there I’ve come across so far.
When is next stable update due out?
Looking at the demo, the email notification functionality is quite undeveloped. Would be good if you could set email notifications on a permission level basis, like you can for Admins. Other than that you have to add email addresses individually for non-admins.
A thought for the next release?
Forum: Plugins
In reply to: [Usernoise modal feedback / contact form] How hide Usernoise to editors?I use Adminimize plugin (Adminimize plugin ) for that sort of thing.
Works very well – gives you very powerful Admin UI control.
Forum: Fixing WordPress
In reply to: Client's updates only show on his PCsongdgtech
You were absolutely right and your hunch/knowledge pointed us in the right direction.
This, combined with the recognition that the last update the the client did that worked was just prior to us moving the webhosting to another platform. His mac was for some reason still trying to see the site at the old hosts!
Many many thanks.
Forum: Fixing WordPress
In reply to: Client's updates only show on his PCWhen he’s on a colleagues PC (using their windows login) using the new admin WordPress account, he can make edits and they are published OK for all to see.
He is unable to sign into wordpress using the new admin account when he is logged into windows using his own windows account.
Does that shed any more light or do you still think the same way?
Forum: Fixing WordPress
In reply to: Client's updates only show on his PCHis network guy says this might explain why he can see the updates on his Mac but wouldn’t explain why others at his office don’t see the updates.
He has confirmed that his user account/profile/login experiences problems when he logs into it but on another pc on the network. He makes updates that show in backend but dont display on front end on that pc.
I’ve also created a new administrator account on the site and provided him these details but he is unable to login using these details supplied on his own mac. However he is able to login using these details on another pc/mac in the office.
Does this help refine the potential cause?
I’ve experienced a specific type of spam increase on a client site. We’ve always had the odd submission (3 or 4 a month) where the sender is .gmail address and the FirstName and LastName fields are the same (interesting?).
These have increased throughout December 2012 and we are now getting about 10 a day. We always had captcha enabled on High and Akismet enabled and set to mark and deliver. Akismet would only mark about 50% as spam
So today I’ve updated to latest version, enabled the honeypot option, changed the URL and added the new url to robots.txt – lets see what happens!
This issue (Silence is golden) is still being reported by Wordfence today.
Bingo! You star.
Initially I got a php error, but after some digging around I found that the value for layout should be ‘full’ and not left. Now it works just as I’d hoped.
The full code for single.php if anyoe else need it is therefore:
<?php /** * Single Post Template - this is the template for the single blog post. */ get_header(); if(have_posts()){ while(have_posts()){ the_post(); //get all the page data needed and set it to an object that can be used in other files $pex_page=new stdClass(); $pex_page->subtitle=get_post_meta($post->ID, 'subtitle_value', true); $pex_page->slider='none'; if($post->post_type == 'ai1ec_event') { $pex_page->layout='full'; $pex_page->sidebar='none'; } else { $pex_page->layout=get_opt('_blog_layout'); $pex_page->sidebar=get_opt('_blog_sidebar'); } //include the before content template locate_template( array( 'includes/html-before-content.php'), true, true ); //include the post template locate_template( array( 'includes/post-template.php'), true, false ); } } //include the comments template comments_template(); //include the after content template locate_template( array( 'includes/html-after-content.php'), true, true ); get_footer(); ?>Many thanks again @josjo
@josjo
That’s a very kind offer:This is page.php from the Cotton template:
<?php /** * Default page template - all the pages by default use this template unless another page template has been assigned. */ get_header(); if(have_posts()){ while(have_posts()){ the_post(); //get all the page data needed and set it to an object that can be used in other files $pex_page=new stdClass(); $pex_page->subtitle=get_post_meta($post->ID, 'subtitle_value', true); $pex_page->intro=get_post_meta($post->ID, 'intro_value', true); $pex_page->slider=get_post_meta($post->ID, 'slider_value', $single = true); $pex_page->slider_prefix=get_post_meta($post->ID, 'slider_name_value', true); if($pex_page->slider_prefix=='default'){ $pex_page->slider_prefix=''; } $pex_page->layout=get_post_meta($post->ID, 'layout_value', true); if($pex_page->layout==''){ $pex_page->layout='right'; } $pex_page->show_title=get_opt('_show_page_title'); $pex_page->sidebar=get_post_meta($post->ID, 'sidebar_value', $single = true); if($pex_page->sidebar==''){ $pex_page->sidebar='default'; } $pex_page->carousel=get_post_meta($post->ID, 'carousel_value', true); $pex_page->carousel_title=get_post_meta($post->ID, 'carouselTitle_value', true); //include the before content template locate_template( array( 'includes/html-before-content.php'), true, true ); wp_reset_postdata(); if($pex_page->show_title!='off'){?> <h1 class="page-heading"><?php the_title(); ?></h1><hr/> <?php } the_content(); } } //include the after content template locate_template( array( 'includes/html-after-content.php'), true, true ); get_footer(); ?>I also think the page code in my previous post is for wrong single.php and the single.php code for Cotton theme is actually as follows:
<?php global $spEvents; $spEvents->loadDomainStylesScripts(); get_header(); ?> <div id="tec-content" class="tec-event widecolumn"> <?php the_post(); global $post; ?> <div id="post-<?php the_ID() ?>" <?php post_class() ?>> <span class="back"><a href="<?php echo events_get_events_link(); ?>"><?php _e('« Back to Events', $spEvents->pluginDomain); ?></a></span> <h2 class="entry-title"><?php the_title() ?></h2> <a class="ical" href="<?php bloginfo('home'); ?>/?ical=<?php echo $post->ID; ?>"><?php _e('iCal Import', $spEvents->pluginDomain) ?></a> <?php if (the_event_end_date() > time() ) { ?><small><?php _e('This event has passed.', $spEvents->pluginDomain) ?></small> <?php } ?> <div id="tec-event-meta"> <dl class="column"> <dt><?php _e('Start:', $spEvents->pluginDomain) ?></dt> <dd><?php echo the_event_start_date(); ?></dd> <?php if (the_event_start_date() !== the_event_end_date() ) { ?> <dt><?php _e('End:', $spEvents->pluginDomain) ?></dt> <dd><?php echo the_event_end_date(); ?></dd> <?php } ?> <?php if ( the_event_cost() ) : ?> <dt><?php _e('Cost:', $spEvents->pluginDomain) ?></dt> <dd><?php echo the_event_cost(); ?></dd> <?php endif; ?> </dl> <dl class="column"> <?php if(the_event_venue()) : ?> <dt><?php _e('Venue:', $spEvents->pluginDomain) ?></dt> <dd><?php echo the_event_venue(); ?></dd> <?php endif; ?> <?php if(the_event_phone()) : ?> <dt><?php _e('Phone:', $spEvents->pluginDomain) ?></dt> <dd><?php echo the_event_phone(); ?></dd> <?php endif; ?> <?php if( tec_address_exists( $post->ID ) ) : ?> <dt> <?php _e('Address:', $spEvents->pluginDomain) ?><br /> <?php if( get_post_meta( $post->ID, '_EventShowMapLink', true ) == 'true' ) : ?> <?php $mapArgs = array("f"=>"q","source"=>"s_q","geocode"=>""); ?> <a class="gmap" href="<?php event_google_map_link( null, $mapArgs ) ?>" title="<?php _e('Click to view a Google Map', $spEvents->pluginDomain); ?>" target="_blank"><?php _e('Google Map', $spEvents->pluginDomain ); ?></a> <?php endif; ?> </dt> <dd> <?php tec_event_address( $post->ID ); ?> </dd> <?php endif; ?> </dl> </div> <?php if( get_post_meta( $post->ID, '_EventShowMap', true ) == 'true' ) : ?> <?php if( tec_address_exists( $post->ID ) ) event_google_map_embed(); ?> <?php endif; ?> <div class="entry"> <?php the_content(); ?> <?php if (function_exists('the_event_ticket_form')) { the_event_ticket_form(); } ?> </div> <?php edit_post_link('Edit', '<span class="edit-link">', '</span>'); ?> </div><!-- post --> <?php if(eventsGetOptionValue('showComments','no') == 'yes'){ comments_template();} ?> </div><!-- tec-content --> <?php get_footer();However, I’m not concerned with the calendar view, it’s when you look at the full detail of a particular event that I’d like it displayed in full width.
Appreciate it if you can use the above to suggest something 🙂
Yani
Thanks for reply.
My single.php file looks like this. Do you fancy proposing te modification?
<?php /** * Single Post Template - this is the template for the single blog post. */ get_header(); if(have_posts()){ while(have_posts()){ the_post(); //get all the page data needed and set it to an object that can be used in other files $pex_page=new stdClass(); $pex_page->subtitle=get_post_meta($post->ID, 'subtitle_value', true); $pex_page->slider='none'; $pex_page->layout=get_opt('_blog_layout'); $pex_page->sidebar=get_opt('_blog_sidebar'); //include the before content template locate_template( array( 'includes/html-before-content.php'), true, true ); //include the post template locate_template( array( 'includes/post-template.php'), true, false ); } } //include the comments template comments_template(); //include the after content template locate_template( array( 'includes/html-after-content.php'), true, true ); get_footer(); ?>Appreciate any help here.