Forum Replies Created
- Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236
bernard
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Thank you very much, Daniel. Your latest release of 1.1.3 has solved the sidebar problem.
Much appreciated.
Bernard
AdvertismentDeprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bernard
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Just highlighting in bold the exact line # 310 below:
if( ! isset( $_GET[‘sidebar’] ) ) {
add_settings_section(
‘sidebar_locations’, // Unique identifier for the settings section
__( ‘Sidebar Locations’, ‘enlightenment’ ), // Section title
‘__return_false’, // Section callback (we don’t want anything)
‘enlightenment_theme_options’ // Menu slug, used to uniquely identify the page
);
add_settings_field(
‘select_template’, // Unique identifier for the field for this section
__( ‘Select Template to Edit’, ‘enlightenment’ ), // Setting field label
‘enlightenment_unlimited_sidebars_select_template’, // Function that renders the settings field
‘enlightenment_theme_options’, // Menu slug, used to uniquely identify the page
‘sidebar_locations’, // Settings section. Same as the first argument in the add_settings_section() above
array(
‘name’ => ‘select_template’,
‘class’ => ‘select-template’,
‘value’ => enlightenment_unlimited_sidebars_current_template(),
)
);
$locations = enlightenment_sidebar_locations();
$template = enlightenment_unlimited_sidebars_current_template();
foreach( $locations[$template] as $location => $sidebar ) {
add_settings_field(
‘edit_sidebar_location_’ . $location, // Unique identifier for the field for this section
$sidebar[‘name’], // Setting field label
‘enlightenment_edit_sidebar_location’, // Function that renders the settings field
‘enlightenment_theme_options’, // Menu slug, used to uniquely identify the page
‘sidebar_locations’, // Settings section. Same as the first argument in the add_settings_section() above
array(
‘name’ => ‘sidebar_locations[‘ . $template . ‘][‘ . $location . ‘]’,
‘value’ => $sidebar[‘sidebar’],
‘description’ => ”,Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bernard
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hi,
I just discovered the following error message when I press ” save settings” at under the Sidebar tab.
Warning: Invalid argument supplied for foreach() in /home/bernardy/public_html/wp-content/themes/enlightenment/core/admin/unlimited-sidebars.php on line 310
Skip to main content
Skip to toolbarI have appended below the codes from the “unlimited-sidebars.php” file, around line # 310 (where the error is supposed to be), hope someone can help to pinpoint where the error is:
if( ! isset( $_GET[‘sidebar’] ) ) {
add_settings_section(
‘sidebar_locations’, // Unique identifier for the settings section
__( ‘Sidebar Locations’, ‘enlightenment’ ), // Section title
‘__return_false’, // Section callback (we don’t want anything)
‘enlightenment_theme_options’ // Menu slug, used to uniquely identify the page
);
add_settings_field(
‘select_template’, // Unique identifier for the field for this section
__( ‘Select Template to Edit’, ‘enlightenment’ ), // Setting field label
‘enlightenment_unlimited_sidebars_select_template’, // Function that renders the settings field
‘enlightenment_theme_options’, // Menu slug, used to uniquely identify the page
‘sidebar_locations’, // Settings section. Same as the first argument in the add_settings_section() above
array(
‘name’ => ‘select_template’,
‘class’ => ‘select-template’,
‘value’ => enlightenment_unlimited_sidebars_current_template(),
)
);
$locations = enlightenment_sidebar_locations();
$template = enlightenment_unlimited_sidebars_current_template();
foreach( $locations[$template] as $location => $sidebar ) {
add_settings_field(
‘edit_sidebar_location_’ . $location, // Unique identifier for the field for this section
$sidebar[‘name’], // Setting field label
‘enlightenment_edit_sidebar_location’, // Function that renders the settings field
‘enlightenment_theme_options’, // Menu slug, used to uniquely identify the page
‘sidebar_locations’, // Settings section. Same as the first argument in the add_settings_section() above
array(
‘name’ => ‘sidebar_locations[‘ . $template . ‘][‘ . $location . ‘]’,
‘value’ => $sidebar[‘sidebar’],
‘description’ => ”,Thanks and regards,
Bernard
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bernard
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Yes, I totally deleted the older version from the folder. Then uploaded the zip file from Daniel (21094). use cpanel, upload, unzipped. However, it is still the same as before. very frustrating.
I had followed the instructions in the theme documentations totally to create the static homepage. Because of this issue, I am stuck. Cannot proceed beyond the first few steps i.e. creating multi-columns/ sidebars.
Hoping to get a solution soon.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bernard
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hi InvYor,
Thanks for your prompt reply. I tried clicking the ‘save setting’ button at the bottom, but still it returned me to the same page with:
Sidebar title…
Display sidebar title…
Select template to edit [404]
etc,etcNot sure what have gone wrong
Regards,
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bernard
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Hi Daniel,
I have downloaded your latest version, but there is still no “add sidebar” button on neither firefox nor chrome browsers. Please help.
Regards,
Bernard