Posts List not displaying in Wordpress admin panel - php

I Have 260 posts in Wordpress blog. But only the first one is displaying in the admin panel. (wp-admin/edit.php). Pages and comments list are loading without any issues.
The server error log says:
PHP Fatal error: Cannot use object of type WP_Error as array in /home/jxjx/public_html/jxjxjx.com/wp-includes/class-wp-list-util.php on line 152, referer: https://jxjxjx.com/wp-admin/edit.php
Tried these:
Updating Wordpress, Themes and Plugins.
Disabling All plugins.
Reinstalling Wordpress.
Cleaning up and Optimizing the database.
Allocating More memory and execution time.
Update
Changing the theme to default
But on the front end, everything works well. What can be the problem ?

This could be a theme issue. You said you disabled all plugins, which is great, but what happens if you revert to the default 2017 theme?
Also, edit wp-config.php (located in the main install folder), and near the bottom, set WP_DEBUG to TRUE. This will hopefully provide us with more necessary information.

Related

Wordpress PHP Error after modifications in functions.php

I was making modifications in functions.php which is generally in Appearances/Edit of wordpress dashboard. As soon as I made the changes and updated the file, the website crashed: now it shows a lame white dead page with some syntax error codes. I do not have access to admin panel / wp-admin. It would work to erase all those wordpress data base and restart, but it means a lot more work. What should I do now?

500 internal server error on drupal admin pages when adding a custom theme

I am trying to accomplish adding a custom theme to a drupal installation. Here is what I am doing and here is what I have tried:
I am downloading an instance of drupal 7 using acquia devdesktop.
I am using either php version 5.5 or 5.6.19 (both versions still get me the same error eventually.
I then navigate to sites/all/themes/ and create a new theme. In my case the folder is called homesite. I then add the files:
-homesite.info
-screenshot.png
And then here is when it gets a little tricky. I am able to see my new theme under the appearance tab in the drupal admin UI. I am able to enable my theme after clearing the cache. I am even able to add a page.tpl.php and start to see my theme come to life. But when i start adding more files - like html.tpl.php I immediately start getting a 500 insternal server error on the admin pages only. Sometimes i am not even able to add a page.tpl.php file before this starts happening.
After i start getting this error, i am no longer able to see any updates on any of the files take hold, but only once I start getting this error.
This tends to make me believe it is a memory limit issue, but when i change the memory limit in php.ini, I then only get a white screen on all urls.
I have tried uncommenting lines in the .htaccess file like 'RewriteBase /' and so on and so forth to no avail.
The answer is that when drupal was scanning my theme directory for .info files, it was getting caught up with all of the .info files in my node_modules directory.
Follow the directions on #4 on this link (#12 takes it a step further)
https://www.drupal.org/node/2329453

WP migration, can't login to WP admin

I was in the middle of migrating a local WP site to a live server and came across a problem.
I edited my WP config file and uploaded it along with the rest of the WP files. I also uploaded the mysql database through phpMyAdmin.
Once i tried to test the site i got an error message "The page isn't redirecting properly". I then, mistakenly, logged in to the admin area and in the Settings > General tab I deleted the localhost part of the URL. Now I'm unable to log back in to the WP admin area.
EDIT
To clarify, my major problem is that i can no longer log in to the wp admin area because of something I've done. The steps i took to get to this point were:
Backed up WP using the BackUpWordpress plugin
Edited back up wp-config file with define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com');
Created mySQL database through DreamHost
Changed database info in wp-config file
Uploaded wp files (not including mySQL backup) to my url using Filezilla
Imported mySQL database backup to DreamHost
I then checked the site from my browser, an error message said too many redirects occurred
From the wp admin area i went to Settings > General and deleted the localhost part of the url that was displayed.
I believe it's due to the previous step I'm now unable to access the wp admin area at all.
I need a way of getting back into the admin area
You can also edit those options within phpMyAdmin. Go to wp_options and locate siteurl and home. Make sure the URL matches your site URL.
You can also edit the site URL in your wp-config.php.
Add these lines somewhere above the /* That's all, stop editing! Happy blogging. */ line.
define('WP_HOME','http://my-site.com');
define('WP_SITEURL','http://my-site.com');
This should overwrite your database settings.
I believe the problem is that studiomed.co.uk is permanently redirected (301) to www.studiomed.co.uk and www.studiomed.co.uk is permanently redirected (301) to studiomed.co.uk
Login to your Dreamhost account go to Domains->Manage Domains and choose one of the three options there are in "Do you want the www in your URL?".
After that use an ftp program to download the .htaccess file that exists in your root installation of wordpress and open it with your favorite editor. Check if you have any kind of redirection in the .htaccess file.
Which version of WordPress do you use?
Can you list the plugins you are using?
Have you gone through the basic WordPress troubleshooting steps?
flush any caching plugins you might be running, as well as server
and/or browser caches.
deactivate all plugins to see if this resolves the problem. If this
works, re-activate the plugins one by one until you find the
problematic plugin(s). Sometimes, an apparently inactive plugin can
still cause problems.
If you can't get into your admin dashboard,
try resetting the plugins folder by FTP or PhpMyAdmin (read
http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F
if you need help).
switch to the Twenty Eleven theme (depends on your WordPress version) to rule out any theme-specific problems.
If you can't log in to change themes, you can remove the theme folders via FTP so the only one is twentyeleven. That will force your site to use it.
manual upgrade. When all else fails, download a fresh copy of the latest.zip file to your computer, and use that to copy up. You may need to delete the wp-admin and wp-includes folders on your server. Read the Manual Update directions first: http://codex.wordpress.org/Updating_WordPress#Manual_Update
check the Master List to see if you're experiencing a known issue
Login to your wordpress dashboard (wp-admin) and go to Settings->Permalinks, select Default and save changes.
Update all urls(path) using this querys then check:--
Use this querys for change all urls(path) for db then check
UPDATE wp_options SET option_value = replace(option_value, 'http://live_ste_path.com', 'http://localhost/local_site_path') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, 'http://live_ste_path.com', 'http://localhost/local_site_path');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://live_ste_path.com','http://localhost/local_site_path')`
[WSOD RESOLVED]
Since I could not find any solution to my problem by googling around, a crucial tracking info I finally found in WP error logs. So I would recommend to inspect logs before spending to much time looking for a proper answer by google.
After migration from an old web host to a new one, in my multisite environment all sites were working. Also, I was able to administer all subsites - but one! Trying wp-admin login to that site led me to fatal white screen. Without any message or any indication about the reason. And the culprit was corrupted file /public_html/subsite-x/wp-admin/admin.php. I really could not understand how that happened, just might suppose it appeared somehow while transferring files (FTP) from old host to a new one.

Wordpress: fatal error no access on control panel/admin panel

During a clean up of my plugins inside of Wordpress i deactivated the: smart archives reloaded plugin.
Next up: a fatal error when i refreshed the page.
Fatal error: Class 'SAR_Generator' not found in wp-content/themes/waldorf/functions.php on line 469
So i couldn't access the site and also the wp-admin / control panel anymore.
Before the clean up i downloaded the whole folder for a backup.
i replaced this folder with the backupped version: no change
replaced functions.php / wp-admin & wp-includes: no change
checked my wordpress version: 3.5.1 downloaded a fresh wordpress folder and replaced those wp-admin & wp-includes with the ones on the ftp: no change.
What to do ??????
It's difficult to provide a quick reply without seeing what the exact lines were in the waldorf theme that you have, however, it seems to be that the theme assumes that the Class 'SAR_Generator' is available by default and doesn't check if this isn't the case.
I suggest logging in via ftp and finding this section of code in your functions.php around line 469 and comment this out and possibly other lines that relate to this.

Broke PHP and caused Wordpress white-screen on Admin

I was doing some work on a wordpress site and another programmer had also been working on it. I was doing the design work, he was doing some custom PHP scripts. (we don't know each other.)
Some of his code was inserted in the wrong place and I made a few changes that I was confident I could undo if they broke the site. 5 hours later I go to log in and all admin screens are blank white. The site is still up and running though.
I tried to switch out the files I altered via ftp, but I must be forgetting something because it is still not working.
I checked the error log on the server and found one fatal error:
[01-Mar-2012 11:25:34] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home5/bestbik1/public_html/silvertoday/wp-content/themes/genesis/lib/init.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home5/bestbik1/public_html/silvertoday/wp-content/themes/streamline/functions.php on line 3
I am not experienced enough at PHP to know how to proceed to get the admin back up and working.
What does each part of this error mean specifically?
and
What steps do I take to correct or troubleshoot?
UPDATE
Finally gave in and did a fresh install of the most recent version of the Genesis theme framework. Everything works again. Wanted to find the bug, but sometimes you gotta move on. Thanks everybody!
It looks to me like you're using a child theme of the Genesis theme framework. Certainly, you've got a functions.php file in your "streamline" theme that's trying to include Genesis's init.php, which is normally the first line of any Genesis child theme's functions.php.
Assuming that your theme is a Genesis child theme, it looks like your Genesis theme install has become corrupt, with its lib/init.php missing or having the wrong permissions. I'd try removing the Genesis theme and reinstalling it (which may mean deleting and re-uploading the wp-content/themes/genesis folder.)
(You didn't uninstall the Genesis theme, did you? If you're using a Genesis child, Genesis has to be installed even if it's not the "active" theme.)
The error means that a required file :
/home5/bestbik1/public_html/silvertoday/wp-content/themes/genesis/lib/init.php
Could be not opened - there could be a number of reasons
The file is not present
The webserver does not have the correct permissions to read the file
I would first check that the file is present on the server in question.
Using the require_once() or require function in PHP means that is a required file cannot be opened the script is halted - this is the reason for the white screen.

Categories