Unable to get Silverstripe betterbuttons to work - silverstripe

Unable to get the 'betterbuttons' module to show up:
https://github.com/unclecheese/silverstripe-gridfield-betterbuttons
This seems like a nice addition that should 'just work' with any ModelAdmin in the CMS. Do I need to configure something additionally in my site _config.php to configure it?

Related

Django Admin searching for strange CSS

I'm running django 1.5.1 with python 2.7. When I try to open the admin page, it cannot load the css because it's searching for files with names like 'base.c8269a10a4bc.css' (the css I'd normally expect with admin is accessible). Apart from this, the admin seems to be ok.
I'm also using pipeline and memcached if that helps.

WooCommerce breaking Wordpress Admin

I've made a clean install of Wordpress on my server and added WooCommerce plugin. Now, some of the pages in the admin panel doesn't display correctly (Dashboard, Media, WooCommerce, etc.).
This is a clean install, only WooCommerce plugin is active.
Do you have any idea why this is happening?
Thanks
Ok so there is VERY little information to go on here so here is the general "Wordpress Broke" debugging guide.
Disable WooCommerce and see if Wordpress goes back to normal. If this is the case then you have to Reinstall WooCommerce. This is where http://docs.woothemes.com/document/known-conflicts would come in handy
If it is still broken without any plugins then you have to check your directory permissions, file structure, and URL Structure.
99% of the time chrome devtools will be your best friend for debuging these problems. It looks like you are not loading some of the core CSS files so lets look to see if you have a a 404, 403, or 500 error when chrome requests them.
Open up chrome and go to the Wordpress admin
Right click anywhere on the page and "Inspect Element"
Look for the red error icon on the right side (top/bottom) and click it to expend the console.
You will probably see the failed requests in there. Make sure the requests are for the correct urls, such as: http://yourdomain.com/wp-admin/load-styles.php or http://yourdomain.com/wp-includes/js/thickbox/thickbox.css
If that are valid URLs and you have verified that the files exist on the server then you have to check directory permissions: http://codex.wordpress.org/Changing_File_Permissions
Best wishes, let me know how it goes
I have seen that problem quite a while right now. You can try adding a specialized theme that has WooCommerce support like BootFrame Core theme. Or any other themes supporting WooCommerce -> https://wordpress.org/themes/search/woocommerce/ . Once, I used a WooCommerce, installed the plugin before changing any theme and had to create a new DB because the one I made before got corrupted due to the theme not working with WooCommerce. It's just a rare case but it can happen.

Notice: register_uninstall_hook was called incorrectly

I automatically updated my wordpress installation to the latest version. Everything looked normal unit "updating database..." where it got stuck. I waited for a long while and then closed the page, since nothing was happening.
Then I got a error message saying something about maintenance, which I got rid of after deleting the maintenance file.
Wordpress displays that it runs the latest version, but when I try to reinstall I get the same errror. I've tried disabling all plugins and switch to the default theme, but no luck.
I set the debug to true and I got this message:
Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information.
Everything looks normal except a image on the front page is breaking the layout.
Any tips?
The way I fixed this type of problem, was to do a global search in my project for the function call.
Some plugins had been installed which had calls such as this:
register_uninstall_hook(__FILE__, array($this,'uninstall_removedata'));
but it should be this:
register_uninstall_hook( __FILE__, 'uninstall_removedata');
If you see a message that something is called incorrectly, the Codex can be very helpful to make sure you use the correct syntax.
In this case it is here:
http://codex.wordpress.org/Function_Reference/register_uninstall_hook
Some WordPress Plugin which you have installed is firing the uninstall hook and is not setup properly.
Can you find the path to the file from the error message?

Have wordpress as a module or extension in Yii

I would like to add a blog to a web site. Couldn't find any good blog extension for Yii, so I decided to just use Wordpress. (Please let me know if there's a better way)
I could just extract wordpress in the root folder and run it.
http://www.example.com/wordpress
However, the Yii framework has its index.php on root folder so I will have to make wordpress either a module or extension (I think) unless I put the Yii framework in a root/yiiFolder and use root/wordpress to separate the two. Also, the main layout will have to be different than the Yii default main layout. Otherwise, the blog will share the same header and footer structure of Yii.
Could someone give me an example on how Yii framework call a non-yiiframework site?
If you are having the following error:
include(Translation_Entry.php): failed to open stream: No such file or directory
then you need to disable Autoload, for example like this:
spl_autoload_unregister(array('YiiBase','autoload'));
$wp=dirname(__FILE__).'/../../../../wp-load.php';
require_once($wp);
spl_autoload_register(array('YiiBase','autoload'));
http://wpengineer.com/1038/embed-wordpress-functions-outside-wordpress/ - here is described how to call wordpress functions from outside wordpress. I tried the same thing from Yii layout and now I'm facing strange error. include(Translation_Entry.php): failed to open stream: No such file or directory. I need to look a little more into this.
Other than that - this solution (if you manage to configure it) should give you what you want.
You can include wordpress as a library, and require_once 'wp_config.php' in index.php. Then you can call wordpress function directly.

Site crashes after installing Devel modules with the Theme developer module

I have to extend an existing Drupal installation with a few features. I am working on a dump of our live system.
I want to search for a bug and install the above mentioned modules, after the installation some pages of the site are completely empty, except for a picture. Some other pages seams to still work as the whole page did before.
I am using the following versions of Drupal and third-party modules:
Drupal 6.19
Devel 6.x-1.24
Theme Developer 6.x-1.x-dev
Do you have any idea on what is going on?
Not sure the exact problem but add the code below to the top of index.php file so your site will show the exact error. php settings can hide these messages but we are going to show them for debug purposes.
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
// $Id: index.php,v 1.94 2007/12/26…
Note that the "//$id:" part is from the original file.
You can also try renaming the devel_theme folder to a temporary one to see if it works.
If you can give us some examples of pages(relative path) where you get this error, I think I can give more info.
Also, check watchdog and syslog to see any hidden errors if any.

Resources