Sitemap error: error on line 2 or 4 (number could vary) at column 6 (could vary): XML declaration allowed only at the start of the document

This page contains the following errors: error on line 4 at column 6: XML declaration allowed only at the start of the document Below is a rendering of the page up to the first error.   https://wordpress.org/support/topic/sitemap-error-error-on-line-2-at-column-6-xml-declaration-allowed-only-at-the/     Plugin SupportMichael Tina  (@mikes41720) 1 year, 9 months ago Hello, This typically happens when a plugin […]

How to sort NextGEN galleries alphabetically for the dropdown in the Add Gallery / Images page

Use an FTP client to navigate to <site_root>/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/templates/upload_images.php Add the following code to the very top Main code snippet Code snippet in context

Comprehensive Debugging

//Report all types of errors. define(‘WP_DEBUG’, true); //Don’t show errors to site visitors. define(‘WP_DEBUG_DISPLAY’, false); //Put logs in wp-content. CAUTION: Hacking hazard define(‘WP_DEBUG_LOG’, true);     @ini_set(‘display_errors’,’On’); @ini_set(‘error_reporting’, E_ALL ); @ini_set ( ‘SCRIPT_DEBUG’, true ); @ini_set(‘log_errors’, ‘On’);   @ini_set(‘error_log’, ‘/home/sage/xhub.fun.log’);     // Simple, elegant /////////////////////////////////////////////////// // TODO: Explain “Simple, elegant” // TODO: Define top […]