Title: John Basham's Replies | WordPress.org

---

# John Basham

  [  ](https://wordpress.org/support/users/permarad/)

 *   [Profile](https://wordpress.org/support/users/permarad/)
 *   [Topics Started](https://wordpress.org/support/users/permarad/topics/)
 *   [Replies Created](https://wordpress.org/support/users/permarad/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/permarad/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/permarad/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/permarad/engagements/)
 *   [Favorites](https://wordpress.org/support/users/permarad/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Property Listings] Override single-listing.php with FSE](https://wordpress.org/support/topic/override-single-listing-php-with-fse/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/override-single-listing-php-with-fse/#post-17349283)
 * I was able to load FSE templates by removing epl_load_core_templates(). Not sure
   about the full ramifications at this point.
 *     ```wp-block-code
       remove_filter('template_include', 'epl_load_core_templates', 10);
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [After automatic 3.7.2 upgrade dashboard not working](https://wordpress.org/support/topic/after-automatic-372-upgrade-dashboard-not-working/)
 *  [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/after-automatic-372-upgrade-dashboard-not-working/#post-4795769)
 * I’ve had several websites over the last few days auto update from 3.7.1 to 3.7.2.
   They all failed. It leaves a number of core wordpress files incomplete.
 * The quickest fix will be to grab a copy of wordpress 3.7.1 from
 * [http://wordpress.org/wordpress-3.7.1.zip](http://wordpress.org/wordpress-3.7.1.zip)
 * remove the wp-content folder and copy the rest to your server so all the files
   will be overwritten except for your wp-content folder and files.
 * backup before you do any of this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-mpdf] Getting Errors on install.](https://wordpress.org/support/topic/getting-errors-on-install/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years ago](https://wordpress.org/support/topic/getting-errors-on-install/#post-3862604)
 * Perfect timing. I’ll check it out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-mpdf] Getting Errors on install.](https://wordpress.org/support/topic/getting-errors-on-install/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/getting-errors-on-install/#post-3862526)
 * Getting a lot of errors when clicking on the button added to the template.
 *     ```
       Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /home/dawkinso/public_html/wp-includes/functions.php on line 2841
   
       Notice: get_author_name is deprecated since version 2.8! Use get_the_author_meta('display_name') instead. in /home/dawkinso/public_html/wp-includes/functions.php on line 2841
   
       Notice: trackback_url was called with an argument that is deprecated since version 2.5! Use get_trackback_url() instead if you do not want the value echoed. in /home/dawkinso/public_html/wp-includes/functions.php on line 2925
   
       Notice: Trying to get property of non-object in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/wp-mpdf.php on line 423
   
       Warning: file_put_contents(/home/dawkinso/public_html/wp-content/plugins/wp-mpdf/debug/default_test-email-1-0.pdf.html) [function.file-put-contents]: failed to open stream: No such file or directory in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/wp-mpdf.php on line 231
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/dawkinso/public_html/wp-includes/functions.php:2841) in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 7148
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/dawkinso/public_html/wp-includes/functions.php:2841) in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 1743
       mPDF error: Some data has already been output to browser, can't send PDF file
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wp-mpdf] Getting Errors on install.](https://wordpress.org/support/topic/getting-errors-on-install/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/getting-errors-on-install/#post-3862443)
 * **Notice: has_cap **is being caused in wp-mpdf.php line 437
 * `add_submenu_page('options-general.php', 'wp-mpdf - config', 'wp-mpdf', '8', 
   dirname(__FILE__), 'mpdf_admin');`
 * the ‘8’ is the role identifier and wordpress no longer supports using the numbers,
   you need to use an actual capability.
 * change the ‘8’ to ‘edit_pages’
 * `add_submenu_page('options-general.php', 'wp-mpdf - config', 'wp-mpdf', 'edit_pages',
   dirname(__FILE__), 'mpdf_admin');`
 * Still working on the second error.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Post to PDF] On Install, Error in Dashboard](https://wordpress.org/support/topic/on-install-error-in-dashboard/)
 *  [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/on-install-error-in-dashboard/#post-3755579)
 * Same error here. WP 3.5.1 + WPPosttoPDF 2.3.1
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Where are the woocommerce orders stored in the database?](https://wordpress.org/support/topic/where-are-the-woocommerce-orders-stored-in-the-database/)
 *  [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/where-are-the-woocommerce-orders-stored-in-the-database/page/2/#post-3132326)
 * [@ignitewoo](https://wordpress.org/support/users/ignitewoo/): do you know where
   in WooCommerce 1.x the order items are stored in the database?
 * Nevermind, order data can be found in wp_postmeta under the meta_key, _order_items.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Content Scheduler] [Plugin: Content Scheduler] Pull the the expiration date](https://wordpress.org/support/topic/plugin-content-scheduler-pull-the-the-expiration-date/)
 *  [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-content-scheduler-pull-the-the-expiration-date/#post-2999395)
 * Just for reference, to pretty up the date being pulled from the database you 
   can use this code to get something like this. eg 10 Days 20 Hrs Remain.
 *     ```
       global $wp_query;
       		$postid = $wp_query->post->ID;
   
       		//Convert to date
       		$datestr=get_post_meta($postid, '_cs-expire-date', true);//Your date
       		$date=strtotime($datestr);//Converted to a PHP date (a second count)
   
       		//Calculate difference
       		$diff=$date-time();//time returns current time in seconds
       		$days=floor($diff/(60*60*24));//seconds/minute*minutes/hour*hours/day)
       		$hours=round(($diff-$days*60*60*24)/(60*60));
   
       		//Report
       		echo "$days Days $hours Hrs Remain<br />";
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Archive custom template from search](https://wordpress.org/support/topic/archive-custom-template-from-search/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/archive-custom-template-from-search/#post-2863572)
 * Well I don’t think I ever actually worked out what was causing this hierarchy
   problem. Probably something to do with my theme.
 * I simply customised the archive template and restructured a few things to get
   my desired setup.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories] [Plugin: Post Expirator] Custom Fields](https://wordpress.org/support/topic/plugin-post-expirator-custom-fields/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-post-expirator-custom-fields/#post-2969118)
 * I realised that the strange date was actually the Unix Timestamp. No idea how
   to deal with that so I opted to use another plugin, ‘Content Scheduler’, its 
   database entry was easy to work with ’00/00/0000 00:00′.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Archive custom template from search](https://wordpress.org/support/topic/archive-custom-template-from-search/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/archive-custom-template-from-search/#post-2863379)
 * Well it’s not even using the search.php, its going straight to the archive.php.
   Hence I cannot use a custom template via the template hierarchy. Is there a way
   within the form to tell the form to use a certain template?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Issues when posting](https://wordpress.org/support/topic/issues-when-posting/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/issues-when-posting/#post-954155)
 * Ok so i’ve found a solution. I think the issues lie with the autosave. Both were
   fixed by removing the autosave function in wp-admin/post-new.php by commenting
   it out:
 * //wp_enqueue_script(‘autosave’);
 * Seems to work fine now. If anyone knows why, an explanation would be welcome.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Issues when posting](https://wordpress.org/support/topic/issues-when-posting/)
 *  Thread Starter [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/issues-when-posting/#post-954144)
 * bump
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How do I Replace the Header with my own JPG File?](https://wordpress.org/support/topic/how-do-i-replace-the-header-with-my-own-jpg-file/)
 *  [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/how-do-i-replace-the-header-with-my-own-jpg-file/#post-953982)
 * Try elaborating on that Gangleri, I too am new to WordPress and that makes no
   sense to me. Im look for a similar result.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can’t add media to my posts](https://wordpress.org/support/topic/cant-add-media-to-my-posts/)
 *  [John Basham](https://wordpress.org/support/users/permarad/)
 * (@permarad)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/cant-add-media-to-my-posts/#post-953976)
 * Try changing the permission to 777.

Viewing 15 replies - 1 through 15 (of 15 total)