Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Hi-
What plugin or them do you use for this support site?Thank you!
MattI saw in another post that there was CSS to fix this but the code wasn’t posted.
Thank you!
MattThis reply has been marked as private.Hi Melanie-
I did everything possible that normal fixes this problem. I went so far as create a new database from an older version of my site. In addition I reinstalled WordPress and downloaded Flexform several times. Spent many hours on phone with Bluehost rep. At one point I had my site stripped down to no plugins. I deleted my plugins folder entirely. When doing that I uploaded an old version of Flexform 1.0.2 and that worked fine, as did any other theme. Version 1.5 would still send my site to the Maintenance mode error. The only thing that worked was deleting the below code from the functions.php files. site url is: yciw.net I’ll post a private reply with the log in details if you’d like to check it out.function sf_maintenance_mode() {
$options = get_option(‘sf_flexform_options’);
$custom_logo = $custom_logo_output = $maintenance_mode = “”;
if (isset($options[‘custom_admin_login_logo’])) {
$custom_logo = $options[‘custom_admin_login_logo’];
}
if ($custom_logo) {
$custom_logo_output = ‘‘;
} else {
$custom_logo_output = ‘‘;
}if (isset($options[‘enable_maintenance’])) {
$maintenance_mode = $options[‘enable_maintenance’];
} else {
$maintenance_mode = false;
}if ($maintenance_mode) {
if ( !current_user_can( ‘edit_themes’ ) || !is_user_logged_in() ) {
wp_die($custom_logo_output . ‘<p style=”text-align:center”>We are currently in maintenance mode, please check back shortly.</p>’);
}}
}
add_action(‘get_header’, ‘sf_maintenance_mode’);August 29, 2013 at 4:03 am in reply to: Puzzling Error -I need support from a developer please #18782function sf_maintenance_mode() {
$options = get_option('sf_flexform_options');
$custom_logo = $custom_logo_output = $maintenance_mode = "";
if (isset($options['custom_admin_login_logo'])) {
$custom_logo = $options['custom_admin_login_logo'];
}
if ($custom_logo) {
$custom_logo_output = '';
} else {
$custom_logo_output = '';
}if (isset($options['enable_maintenance'])) {
$maintenance_mode = $options['enable_maintenance'];
} else {
$maintenance_mode = false;
}if ($maintenance_mode) {
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {
wp_die($custom_logo_output . '<p style="text-align:center">We are currently in maintenance mode, please check back shortly.</p>');
}}
}
add_action('get_header', 'sf_maintenance_mode');August 29, 2013 at 4:03 am in reply to: Puzzling Error -I need support from a developer please #18781I deleted this from functions.php and 1.5 loads
function sf_maintenance_mode() {$options = get_option(‘sf_flexform_options’);
$custom_logo = $custom_logo_output = $maintenance_mode = “”;
if (isset($options[‘custom_admin_login_logo’])) {
$custom_logo = $options[‘custom_admin_login_logo’];
}
if ($custom_logo) {
$custom_logo_output = ‘‘;
} else {
$custom_logo_output = ‘‘;
}if (isset($options[‘enable_maintenance’])) {
$maintenance_mode = $options[‘enable_maintenance’];
} else {
$maintenance_mode = false;
}if ($maintenance_mode) {
if ( !current_user_can( ‘edit_themes’ ) || !is_user_logged_in() ) {
wp_die($custom_logo_output . ‘<p style=”text-align:center”>We are currently in maintenance mode, please check back shortly.</p>’);
}}
}
add_action(‘get_header’, ‘sf_maintenance_mode’);Thanks for your help Gorkism.
I have version 1.02. Do you know of a way I could get a more recent one.
THank you!
MattOne more important note. The site loads if I’m logged in as the admin. If I’m not logged in the site shows the error..
We just tried this and it didn’t work.
Please help. I have done the following:
My site works with every other theme except Flexform.
1. Reinstalled WordPress
2. Re-downloaded and installed Flexform several times.
3. I’ve removed every plugin.Still, my site goes to the “….site under maintenance error”
Is there someway just to shut that page off??
yciw.net
Cosmin-
Also, my site works fine with other themes.Please help me if you can, I’m extremely frustrated. Going on my 3rd day with no site.
Best,
MattHi Cosmin-
This is the error related to Flexform:[28-Aug-2013 12:33:59] PHP Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home1/yciwnet/public_html/wp-content/themes/flexform/functions.php on line 172
Bluehost is saying that this is the questionable code:
if ( in_array( ‘woocommerce/woocommerce.php’, apply_filters( ‘active_plugins’, get_option( ‘active_plugins’ ) ) ) ) {
Bluehost is my provider
I’ve posted the error in a reply above.
here is my url:
yciw.net
Let me know and I’ll send over my admin log in info in a private reply.
Thank you!
Matt -
Posted in: We hit Power Elite.