If I add ?> to the end of the quote then I get the same message but for a file in the theme, instead of this one in the plugin
website: newsite2015.hannibalindustries.com/wordpress
<?php
/*
Plugin Name: Page builder & Shortcodes - PremiumCoding
Plugin URI: https://premiumcoding.com
Description: Easily create custom page templates with intuitive drag-and-drop interface.
Version: 1.3.5
Author: PremiumCoding
Author URI: https://premiumcoding.com
*/
//definitions
add_option('pmc_img_count');
if(!defined('AQPB_PATH')) define( 'AQPB_PATH', plugin_dir_path(__FILE__) );
if(!defined('AQPB_DIR')) define( 'AQPB_DIR', plugin_dir_url(__FILE__) );
//required functions & classes
load_theme_textdomain( 'pmc-themes', AQPB_PATH .'lang/' );
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
require_once(AQPB_PATH . 'pmc-import.php');
require_once(AQPB_PATH . 'functions/aqpb_config.php');
require_once(AQPB_PATH . 'classes/class-aq-page-builder.php');
require_once(AQPB_PATH . 'classes/class-aq-block.php');
require_once(AQPB_PATH . 'functions/aqpb_functions.php');
require_once(AQPB_PATH . 'shortcodes.php');
if (pmc_woo() && PMC_SHOP){
global $woocommerce;
$root = dirname(dirname(dirname(dirname(__FILE__))));
if ( !class_exists( 'WC_Widget' ) )
include_once($root.'/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php');
if ( !class_exists( 'WC_Widget_Layered_Nav_Filters' ) )
include_once($root.'/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav-filters.php');
if ( !class_exists( 'WC_Widget_Price_Filter' ) )
include_once($root.'/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php');
if ( !class_exists( 'WC_Widget_Layered_Nav' ) )
include_once($root.'/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php');
add_action( 'widgets_init', 'override_woocommerce_widgets', 15 );
function override_woocommerce_widgets() {
// Ensure our parent class exists to avoid fatal error (thanks Wilgert!)
if ( class_exists( 'WC_Widget_Layered_Nav_Filters' ) ) {
unregister_widget( 'WC_Widget_Layered_Nav_Filterss' );
include_once (AQPB_PATH . 'assets/widgets/pmc-woo-widget-layered-nav-filters.php');
register_widget( 'PMC_Widget_Layered_Nav_Filters' );
}
if ( class_exists( 'WC_Widget_Price_Filter' ) ) {
unregister_widget( 'WC_Widget_Price_Filter' );
include_once (AQPB_PATH . 'assets/widgets/pmc-woo-widget-price-filter.php');
register_widget( 'PMC_Widget_Price_Filter' );
}
if ( class_exists( 'WC_Widget_Layered_Nav' ) ) {
unregister_widget( 'WC_Widget_Layered_Nav' );
include_once (AQPB_PATH . 'assets/widgets/pmc-woo-widget-layered-nav.php');
register_widget( 'PMC_Widget_Layered_Nav' );
}
}
}
require_once(AQPB_PATH . 'blocks/aq-title-block.php');
require_once(AQPB_PATH . 'blocks/aq-column-block.php');
require_once(AQPB_PATH . 'blocks/aq-clear-block.php');
require_once(AQPB_PATH . 'blocks/aq-widgets-block.php');
require_once(AQPB_PATH . 'blocks/aq-richtext-block.php');
require_once(AQPB_PATH . 'blocks/aq-team-block.php');
require_once(AQPB_PATH . 'blocks/aq-advertise-block.php');
require_once(AQPB_PATH . 'blocks/aq-port-block.php');
require_once(AQPB_PATH . 'blocks/aq-title-border-block.php');
require_once(AQPB_PATH . 'blocks/aq-title-border-block-end.php');
require_once(AQPB_PATH . 'blocks/pmc_wp_breadcrumb_block.php');
require_once(AQPB_PATH . 'blocks/aq-end-content-block.php');
require_once(AQPB_PATH . 'blocks/aq-start-content-block.php');
require_once(AQPB_PATH . 'blocks/aq-testimonial-block.php');
require_once(AQPB_PATH . 'blocks/aq-contact-block.php');
require_once(AQPB_PATH . 'blocks/aq-twitter-block.php');
require_once(AQPB_PATH . 'blocks/aq-features-block.php');
require_once(AQPB_PATH . 'blocks/aq-featured-block.php');
require_once(AQPB_PATH . 'blocks/aq-quote-title-block.php');
require_once(AQPB_PATH . 'blocks/aq-slider-RevSlider-block.php');
require_once(AQPB_PATH . 'blocks/aq-posts-full-width-block.php');
require_once(AQPB_PATH . 'blocks/aq-portfolio-block.php');
require_once(AQPB_PATH . 'blocks/aq-menu-logo-block.php');
require_once(AQPB_PATH . 'blocks/aq-logo-block.php');
require_once(AQPB_PATH . 'blocks/aq-social-block.php');
require_once(AQPB_PATH . 'blocks/aq-article-block.php');
require_once(AQPB_PATH . 'blocks/aq-notification-menu-block.php');
/*prebuild*/
require_once(AQPB_PATH . 'blocks/aq-prebuild-contact.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-team.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-header.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-testimonials.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-news.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-portfolio.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-footer.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-start-end-title-small.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-start-end-title-full.php');
require_once(AQPB_PATH . 'blocks/aq-prebuild-start-end-small.php');
/*blogs*/
require_once(AQPB_PATH . 'blocks/pmc_blog_full_width.php');
require_once(AQPB_PATH . 'blocks/pmc_mini_blog.php');
/*portfolio*/
require_once(AQPB_PATH . 'blocks/aq-portfolio-page-block.php');
/*blog*/
require_once(AQPB_PATH . 'blocks/aq-blog-page-block.php');
/*shop*/
if (pmc_woo() && PMC_SHOP){
require_once(AQPB_PATH . 'blocks/aq-productR-block.php');
require_once(AQPB_PATH . 'blocks/aq-productF-block.php');
require_once(AQPB_PATH . 'blocks/aq-product-category-block.php');
require_once(AQPB_PATH . 'blocks/aq-category-block.php');
require_once(AQPB_PATH . 'blocks/pmc_woo_cart_block.php');
}
//register default blocks
aq_register_block('AQ_Start_Content_Block');
aq_register_block('AQ_End_Content_Block');
aq_register_block('AQ_Title_Border_Block');
aq_register_block('AQ_Title_Border_Block_end');
aq_register_block('AQ_Title_Block');
aq_register_block('AQ_Column_Block');
aq_register_block('AQ_Clear_Block');
aq_register_block('AQ_Menu_Block');
aq_register_block('AQ_Notification_Menu_Block');
aq_register_block('AQ_Logo_Block');
aq_register_block('AQ_Slider_Block_revolutionSlider');
aq_register_block('AQ_Quote_Title_Block');
aq_register_block('AQ_Features_Block');
aq_register_block('AQ_Featured_Block');
aq_register_block('AQ_Contact_Block');
aq_register_block('AQ_Widgets_Block');
aq_register_block('AQ_Port_Block_Feed');
aq_register_block('AQ_Portfolio_Block');
aq_register_block('AQ_Advertise_Block');
aq_register_block('AQ_Posts_Full_Width_Block');
aq_register_block('AQ_Testimonial_Block');
aq_register_block('PMC_Wp_Breadcrumb_Block');
aq_register_block('AQ_Richtext_Block');
aq_register_block('AQ_Article_Block');
aq_register_block('AQ_Social_Block');
aq_register_block('AQ_Twitter_Block');
aq_register_block('AQ_Team_Block');
/*prebuild*/
aq_register_block('PMC_Prebuild_Start_Small');
aq_register_block('PMC_Prebuild_Start_Title_Small');
aq_register_block('PMC_Prebuild_Start_Title_Full');
aq_register_block('PMC_Prebuild_Header');
aq_register_block('PMC_Prebuild_Footer');
aq_register_block('PMC_Prebuild_News');
aq_register_block('PMC_Prebuild_Portfolio');
aq_register_block('PMC_Prebuild_Contact');
aq_register_block('PMC_Prebuild_Team');
aq_register_block('PMC_Prebuild_Testimonials');
/*blogs*/
aq_register_block('PMC_Full_Width_Blog');
aq_register_block('PMC_Mini_Blog');
/*portfolio*/
aq_register_block('AQ_Portfolio_Page_Block');
/*blog*/
aq_register_block('AQ_Blog_Page_Block');
//shop
if (pmc_woo() && PMC_SHOP){
aq_register_block('PMC_Woo_Cart_Block');
aq_register_block('AQ_Product_Block_Feed');
aq_register_block('AQ_ProductF_Block_Feed');
aq_register_block('AQ_Category_Block');
aq_register_block('AQ_Product_Category_Block');
}
//fire up page builder
$aqpb_config = aq_page_builder_config();
$aq_page_builder = new AQ_Page_Builder($aqpb_config);
if(!is_network_admin()) $aq_page_builder->init();
/*PremiumCoding Shortcodes*/
if(!defined('PMC_PATH')) define( 'PMC_PATH', plugin_dir_path(__FILE__) );
if(!defined('PMC_DIR')) define( 'PMC_DIR', plugin_dir_url(__FILE__) );
register_nav_menus(array(
'pagebuildermenu' => 'Page builder menu',
));
]]>I haven’t made any changes to my blog (not even a new post) in the past few days and today I woke up to errors
On the main page (and other pages) I see:
Warning: Division by zero in /home/extrapay/public_html/blog/wp-config.php on line 32
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/extrapay/public_html/blog/wp-config.php:1) in /home/extrapay/public_html/blog/wp-content/themes/Divi/header.php on line 1
I can’t even login to the wp-admin because that page displays an error as well:
Warning: Division by zero in /home/extrapay/public_html/blog/wp-config.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/extrapay/public_html/blog/wp-config.php:1) in /home/extrapay/public_html/blog/wp-includes/pluggable.php on line 1178
Can anyone please help me with that?
Thanks!
Fatal error: Function name must be a string in /home/content/b/i/g/bigboyz/html/sundeimage/wp-admin/includes/comment.php on line 1
I have tried checking it in Dreamweaver but I don’t see the error.. Anyone had this issue before?
]]>My story in a nutshell.
a.) Backed up an existing WordPress site to my computer with MAMP (the WPsite was designed by someone else over a year ago).
b.) Upgraded to WP 3.7.1 from WP 3.5, and changed the Revolution Slider.
c.) Then uploaded files from localhost to live server by ftp, then placed WordPress folder in ‘public’ folder.
d.) Logged into C panel and created a database – I kept the databases’ name the same as the original. I, then, deleted the old database*.
e.) Next, I went into phpMyadmin to import the WordPress database. Clicked on the database I created earlier, ‘Imported’ the gzipped database and pressed the ‘Go’ button a the bottom of the page.
f.) At the bottom of a garbled pink error message, I got the following message:
MySQL said:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘?’ at line 1
*Because step ‘e’ didn’t work, now there’s no database connection to the WP site. As a newbie, I didn’t anticipate this error. By the way, I do have original version of the SQL. I tried importing that and got a longer error message.
Thanks everyone.
]]>I’ve been having a tough time, and I know there are much more talented people on this forum than I am. If you could share your wisdom I will be thankful!
When activating or previewing the theme I keep getting
Parse error: syntax error, unexpected T_FUNCTION in /www/99k.org/d/j/i/djigtestpage/htdocs/wp-content/themes/indiefest/foxhound/settings-page.php on line 1
I’ve tried multiple different uploaders to see if my uploader was putting all the files on the same line. I’ve tried deleting the space before and after the <? and ?>. I’m stumped and don’t know what to do.
Here is the code from the offending file.
[130 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
]]>This is the error I keep getting found on line -1 . What does that mean? Something isn’t in there that needs to be?
File not found: https://www.jameslanmanandthegoodhurt.com/style.css: Not Found
Here is my CSS
[CSS moderated as per the Forum Rules. ]
using a free host. i know this is trouble.
setup mysql database, setup config file, uploaded it all onto a fresh hosting account.
directed to wp-admin/install.php … error:
“Parse error: syntax error, unexpected $end in /home/twist/public_html/wp-config.php on line 1”
i know this may be a hack but the account with the host company is fresh. i get hacked b4 i even get to the install.php bit??? i checked the index.php file, no code injected. no unwanted spaces or linebreaks. i don’t get it. i have tried several free hosts tonight and they all give me the same line 1 error. simply can’t believe i get hacked everytime as soon as i upload the files.
help, much love.
twist
https://codex.www.ads-software.com/Answers-Troubleshooting#Headers_already_sent
Countless times but it doesn’t help.
The problem I’m getting is lots of version of this, whatever I try and do.
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-content\themes\clinical\functions.php:1) in <b>C:\xampp\htdocs\wordpress\wp-content\plugins\twitter-tools\twitter-tools.php</b> on line <b>1106</b><br />
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-content\themes\clinical\functions.php:1) in C:\xampp\htdocs\wordpress\wp-includes\classes.php on line 1586
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-content\themes\clinical\functions.php:1) in C:\xampp\htdocs\wordpress\wp-includes\pluggable.php on line 865
So I’ve followed the solution as detailed in the FAQ but it doesn’t help, there are no extra characters at the start or end of my functions.php file.
Any help will be greatly appreciated.
]]>Fatal error: Call to undefined function get_header() in /home/content/f/1/v/f1veb3st/html/page.php on line 1
Any idea how to fix this?
]]>I’ve got a bit of a problem with my blog using ie7.
https://www.garfordskies.com/blog/barry
It reports an error at line 2, char 1, but I can’t for the life of me see what the problem is.
I wonder if one of you genii could please take a look?
Thanks so much!!
GarfordJB
]]>