New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0.2 gives white screen of death #37
Comments
We need to check for class_exists() before define our meta boxes, like this:
Please see the |
Hi Rilwis, that is one of the things I saw that changed from version 4.0.1 to version 4.0.2. I have now updated the plugin and I have used the new demo.php file to make my sl_metaboxes.php file. However, although the site now runs normal (white screen is gone), I still cannot see the metaboxes that previously were clearly visible... |
So basically what I am trying to say is that in the Edit Posts screen my custom meta boxes now have vanished. They're just not there. If I turn on Custom Fields in the Screen Options I can see them, but the Custom Meta Box no longer is there. |
Can you post your code of your meta box definition? And can you test other plugins by deactivating all plugins and activate each of them? |
Hi rilwis, it's a live site of a client, so no, I cannot test other plugins.
And to my functionality.php file I added the code for the long_text field:
Dunno why the return input doesn't show up here: input type='long_text' class='rwmb-text' name='{$field['id']}' id='{$field['id']}' value='$meta' size='50' |
The method By the way, does that happen to |
Hi rilwis, ok I changed the long_text according to the new version of text.php, but still nothing shows in the back-end :( |
A stupid question: did you assign the correct post type to meta box? |
yes, the post type is "normal" post: 'pages' => array( 'post' ), |
rilwis I have a side question for you: is there anything fundamentally wrong with your previous metaboxes script, the one that did not come as a plugin? Because if there isn't, then I will stop wasting everyone's time here and just implement that as that is and has been working on all the sites that I use it. This is actually the first site where I use the plugin version on and immediately with the first plugin update things go wrong... |
Do you mean the 4.0.1 version? From 4.0.1 to 4.0.2, there're some minor fixes for check box fields. If you're saying about version 3.2.2, then there're big changes in the code (refactor, re-format, etc.) but v3.2.2 still works well. |
I indeed meant 3.2.2. OK I think I will switch back to that version then, because as you can see I don't need all the extended functionality of the script anyway. When I need the custom meta boxes for a new project I will try to do it again with the plugin version. |
Just updated to version 4.0.2 and unfortunately that gave me the white screen of death. Reverting back to 4.0.1 didn't solve it however and deleting the plugin also didn't help.
The only thing that worked, was to delete the demo.php from my theme. I have given this demo.php file a different name (sl_metaboxes.php) and added it to the includes folder of my theme. In my functions.php file I have called it as:
// Include Metaboxes script
include 'includes/sl_metaboxes.php';
My error log says the following:
[21-Dec-2011 07:48:48] PHP Fatal error: Class 'RW_Meta_Box' not found in /.../.../public_html/domain/wp-content/themes/salt2011/includes/sl_metaboxes.php on line 145
Line 145 calls this:
143: // Register meta boxes
144: foreach ( $meta_boxes as $meta_box ) {
145: new RW_Meta_Box( $meta_box );
146: }
Now what I don't understand is that version 4.0.1 worked with my setup, but after updating to 4.0.2 and then downgrading back to 4.0.1 it doesn't work anymore.
I have temporarily deleted the sl_metaboxes.php file, but if we cannot find a solution soon, I will have to revert back to the old hard-coded script instead of the plugin.
Looking forward to hear other experiences and hopefully a solution.
Thanks,
Piet
The text was updated successfully, but these errors were encountered: