Only the left menu toolbar is showing up on Wordpress admin - wordpress

When I log in to my Wordpress admin, only the left menu toolbar is showing. Nothing else is displaying. The website front end works fine.
What I've done so far to investigate:
Renamed plugins folder to pluginz to make sure none of the plugins are doing this
Made sure there is no javascript error on the page
Made sure there is no 404 errors
Temporarily removed .htaccess to eliminate possible htaccess issues
Made sure there is no fatal php error thrown on admin
Any idea what might be going on?

I was able to fix the issue with help from here :
To fix the bug:
Open file blog/wp-admin/includes/screen.php in your favorite text editor.
On line 706 find the following PHP statement: <?php echo self::$this->_help_sidebar; ?>
Replace it with the statement: <?php echo $this->_help_sidebar; ?>
Save your changes.

Related

Elementor on Wordpress not loading due to

I'm still pretty new to Wordpress but I started rebuilding a website and I want to edit the homepage elements.
Unfortunately when i click on "edit with Elementor" i get this error:
can anyone help me please?
I want to edit my header search bar and re-order the elements in this homepage...
Can you please check the page code if
<?php echo the_content();?>
is added in your page code?

Admin bar appears empty in WordPress

Admin bar appears after adding code to the functions.php
add_filter( 'show_admin_bar', '__return_true' );
but empty except for the WP logo and the search on the right.
I installed latest version of twentyTwelve, it didn't appear,after adding the same code to the theme's functions.php it appears with the same problem.
So I don't think it has to do with the theme.. So I deactivated all plugins, And I still have the same problem.
Note: There is no problem with the admin bar in the Dashboard. Also I checked the HTML structure, it's not hidden by CSS.
<?php wp_footer(); ?> + <?php wp_header(); ?> are defined in the themes header and footer.
If the toolbar is forced to load (via show_admin_bar) but a user is not logged in it has nothing to show the user. When this happens it looks exactly like your screen shot with just the WP and search icons present. The toolbar will load anytime a user is logged in though so there is no reason to force it to load unless you intend to modify its behavior to include actions for anonymous users.
I was able to recreate this easily in a clean install but only if there was no user logged in. If this is happening to you when a user is logged in then I suggest a fresh install of WP in a subdirectory, or locally, then enabling your theme and plugins one by one until it breaks so you know which component is causing the problem.

Integrating a Wordpress query into a PHPBB theme template

UPDATE: Managed to solve this by accident, answer is below.
I'm working on a site which requires several of the 'promoted' posts from the Wordpress blog to be displayed at the top of the forum.
(This is literally the only interaction between WP and PHPBB, there's no single sign-on or anything.)
I'm following the instructions listed here:
http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website
and here:
https://wiki.phpbb.com/Tutorial.Template_syntax
As such, I've edited my theme's overall_header.html file to include this at the top:
<!-- PHP -->
define('WP_USE_THEMES', false);
<!-- ENDPHP -->
<!-- INCLUDEPHP ../wp-blog-header.php -->
Later, at the correct place in overall_header.html, I need to call the actual php file which contains the query, which I do so like so:
<!-- INCLUDEPHP ../wp-content/themes/mytheme/heroarea-secondary.php -->
But when I load the forum, I get a fatal error which causes the page to stop loading, with the following error message:
Fatal error: Call to a member function main() on a non-object in C:\Apache24\htdocs\test\wp-includes\functions.php on line 808
Now I know there's not actually anything wrong with functions.php so I assume the issue is in my configuration, but I have no idea why it doesn't work.
If I create a seperate, standalone PHP file which just has this:
<?php
define('WP_USE_THEMES', false);
require('C:/Apache24/htdocs/test/wp-blog-header.php');
include('C:/Apache24/htdocs/test/wp-content/themes/mytheme/heroarea-secondary.php');
?>
Then that works perfectly without any troubles and pulls the correct three posts from the 'promoted' category as desired. But as soon as I try and replicate it in PHPBB, I get the fatal error listed above.
Can anyone point me in the right direction?
I've tried including wp-load.php and wp-config.php but neither make a difference.
I actually just now managed to solve the issue.
The solution is to add
define('WP_USE_THEMES', false);
require('path/to/wp-blog-header.php');
To the bottom of common.php in the phpBB root directory.
Hope this helps anybody else in the future!

wp sidebar and footer (widget areas) disappeared

I am using the Adapt theme by wp-explorer. Though I have done quite a few css edits, everything was working fine until recently. Now my wp theme is missing the sidebar and footer areas. For example http://www.mipsmusic.com/media/ should have a sidebar on the right and a footer on the bottom. In the wp-admin area the widget area is gone. (There are still widgets, but no widget areas to drag n drop the widgets into)
I have tried:
deactivating all plugins
checking single.php for <?php get_sidebar(); ?> and <?php get_footer(); ?> and the tags are right there at the bottom of the page.
switching to the twenty eleven theme to see if it was a theme problem.
The results were the same in each case: no sidebar, no footer, and no widget areas in the back end.
Does anyone have any suggestions? Do I need to do a fresh wp install manually? If so, does anyone know a good tutorial for it - I don't want to lose all my edits.
Thanks in advance!
UPDATE:
I tried the wordpress debugging and in the widget area and I believe this is my problem...but what do I do to fix this?
Fatal error: Call to undefined function dynamic_sidebar()
There is a fatal PHP error right as your sidebar begins. You can see this if you look at the source of the page (View Source):
</article>
<!-- /post -->
<aside id="sidebar" class="clearfix">
That is the very end of your document. Those are the last lines. That is where the fatal error occurs, which stops the generation of the page. Either there is an error in your theme, or in a widget. Enable debugging and it should give you a hint. Edit your answer to include that information and I will try to help more. Until then, this is the best answer I've got.
Edit:
The undefined function error you posted suggests a broken WordPress install, not a problem with the widgets themselves. dynamic_sidebar is a core WordPress function. It should not ever really be 'undefined'. I would suggest re-uploading the wp-includes and wp-admin folders to your site. Sounds like you have missing or corrupt files.

Slider stops loading pictures on a different page

I am building this site - http://www.bellated.us.lt/.
The problem is that the slider stops loading pictures for all other pages except for the main one. To see the problem you just have to press on any link from the menu. It is a wordpress system and all the code is added to the header.php. In fact, this file should be loaded properly always, not only for the main one.
Actually, I have no idea on how to solve this, so if you have any suggestions - please share.
Thanks.
You have a lot of network errors, like the following, on your page.
"NetworkError: 404 Not Found - http://bellated.us.lt/js/lightbox.js"
"NetworkError: 404 Not Found - http://bellated.us.lt/sample-page/slider1.jpg"
So probably your issue is caused by a path error, where you are referencing your files with incorrect relative paths. If so, these might help:
<?php get_stylesheet_uri() ?>
<?php get_template_directory_uri(); ?>
See:
get_stylesheet_uri
get template directory uri

Resources