Dashboard template Sonata Admin Bundle weird - symfony

My dashboard in Sonata Admin is completely weird.
I've removed the bundle from vendors and web.
Update with composer (all dev-versions of sonata) and clear the cache.
Still weird.
erro http://img21.imageshack.us/img21/246/qgy8.png

There has been an udpdate in the block_admin_list.html.twig in sonata admin bundle. See this commit
If you want to go back to the previous template, download this version of block_admin_list.html.twig and put this file in you app/Resources/view.
Now update your config.yml to change the list_block template :
sonata_admin:
# your config
# ...
templates:
list_block: ::block_admin_list.html.twig
I add the same bug yesterday and this workaround works fine.
Hope this helps

Related

WP admin Screen Issue

I have a WP website when I logged into admin panel im seeing the screen as in the image
I don't know what's wrong, I updated the WP to the latest version.
Please assist
Problem : Admin Css not loading
WordPress admin CSS styles missing.
All the WordPress admin styles were not loading.
Solution
Step :1 Download a wordpress zip file.
Step :2 Extract it
Step :3 keep wp-content and your database, just reinstall the core files
Step :4 Clear your browser cache & Login to admin again. (Use Incognito mode in chrome)
Updated Answer
Problem : Admin Css not loading
As mention in comment you have problem with plugin or theme that will not be support updated version.
Step to check why this happening.
Step 1 : Rename plugin folder and load website load site (if not solve)
Step 2 : Rename theme folder and load website (if not solve)
Step 3 : Rename both and check (if not solve)
If anything that break that will be detect.please check one by one activation plugin.
Note Please do this in localhost if your site is working on live.
add this code in wp-config.php and try
define( 'CONCATENATE_SCRIPTS', false );

SonataPageBundle remove page composer

I install and full configurate sonata page bundle. But there is on edit/add page page composer. There is the way to remove page composer from sonata page admin area?

Woocommerce overridden not work after Administrator logged in

I've copied the folder plugin/woocommerce/template to theme/mytheme/woocommerceand designed a new template and just checked Woocommerce/System Status to make sure overridden is worked.
The template works fine but when the user or the admin logged in , the overridden code does not work and the template defaults to plugin/woocommerce/template and shows the default template
the problem happened for this particular pages:
Product-single.php
taxonomy-product_cat.php
archive-product.php
And this problem happen just when Administrator logged in
How can this problem be addressed?
I Also Disable All plugin (except woocommerce), copy original woocommerce template file to twentysixteen Template and modify that.
But The Problem not Solved Anyway!
I use woocommerce 2.5.5 And Wordpress 4.4.2

Can't upgrade WordPress or add new plugin while logged in as admin (using Sage theme)

I am logged into a WordPress site backend as an administrator. The theme was built using the Sage Starter Theme.
During development there was no issue with adding plugins or upgrading the core, but since moving to production, there is no "Add New" button for plugins and the upgrade message reads "WordPress 4.3 is available! Please notify the site administrator."
I tried manually changing the db_version field of the wp_options table to force a database upgrade. This didn't work.
I tried disabling all plugins and changing to the twentyten theme - this did not work.
Checked all permissions on the server - no joy.
How can I resolve this issue?
The latest Sage Starter theme uses a .env file to set up environments via the phpdotenv library. It lives in a directory above the public HTML web root of the WordPress installation.
If you changed the line WP_ENV=development to WP_ENV=production in the .env file when the site went live, then it's likely this is the source of the issue.
If you look at the actual configuration for the production environment in /config/environments/production.php, you see the following:
define('DISALLOW_FILE_MODS', true); // this disables all file modifications including updates and update notifications
This tells WordPress not to allow manual addition of plugins or allow core updates. You can simply edit this to be:
define('DISALLOW_FILE_MODS', false); // allow file modifications including updates and update notifications
After you've modified the core or added plugins, you can simply change it back if you don't want admins to have this power, but a better solution would be to install a capability manager plugin and define an admin role with slightly lower privileges.
For anyone else with this problem, there is another line that you may have to find in your wp-config or functions file and change to false:
define('DISALLOW_FILE_EDIT', true);
I can't find the line define('DISALLOW_FILE_MODS', true); or define('DISALLOW_FILE_MODS', false); in my wp-config.php file.
My solution: I just added the line define('DISALLOW_FILE_MODS', false); in wp-config.php file after define('DB_HOST', 'localhost'); /* or anywhere */
That SOLVED my problem and I was able to update again core, theme and plugins.
In my case, the problem was caused by the removed permissions for my "administrators" user group.
More exactly the update_core were missing in wp_options table option_name = %wp-table-prefix%_wp_user_roles
The easiest way to fix it is to install PublishPress Capabilities plugin and you can find it in the "Admin" tab. First, click black X (negate all) and save and then you can enable it.
The same maybe for plugins and themes updates.

Sonata SEO Bundle Site MAP

I am using sonata seo bundle and knp paginator bundle.
My Question is When I added new custom static url like :-(www.symfony.in/blog)
in our KNP Menu.It's added successfully. But When I run the :-
php app/console sonata:seo:sitemap --scheme=http web www.symfony.in --env=prod
Command execute successfully But in sitemap Blog url(www.symfony.in/blog) not added.
Any one know how to add custom url in Sonata SEO Bundle in Sitemap ?
I am google it but nothing found !
Thnaks!
You need to create a SitemapIterator in order to add your custom URLs to the Sitemap, as described in the documentation. This is an Iterator that you will have to declare as a service, and then reference into the sonata_seo.sitemap.services configuration.

Resources