Drupal WSOD on admin pages only, whenever any non-core module is enabled - drupal

I have a new installation of drupal 6.22 and one of the first things I did was to install CCK. Enabling this module gave me a WSOD on the whole site, so I deleted the module directory from sites/all/modules. This got rid of the WSOD but now whenever I enable a non-core module, the front-end of the site continues to work but the admin screen give me a wsod. I have read the drupal docs on this and installed dtools. With dtools on, I can see I'm getting the error
ERROR: Callback: system_main_admin_page() doesn't exist!
I am guessing that deleting the CCK files without disabling the module (CCK) may be part of the problem. How do I programmatically disable modules? Any other ideas on fixing this?
Thanks,

If you have basically a fresh install, it wouldn't be difficult to just reinstall Drupal which should solve your problem. If you don't wish to do that, you can disable modules in the database through phpMyAdmin, a DB query etc.
If in phpMyAdmin, go to the system table, find the module(s) you want to disable and change the status from 1 to 0.

Related

how to re-install drupal 8 from scratch

Does Drupal 8 store its installation state in places other than the database? I had dropped the database several times to go through the installation from scratch, but it seems to be skipping steps at this point since it thinks its already "semi-installed".
I am a Drupal newbie, but experienced dev. I am using Windows 10, latest Firefox browser, Drupal 8.5.1 and MAMP (4.0 -- I think).
I successfully created the database, reached the Drupal choice of language start of installation page, and kicked it off BUT it had skipped the database setup page -- obviously it thinks it already knows where it is. And, it skipped the "site setup" step.
Then it launches a blank page with this url:
http://localhost/drupal/core/install.php?rewrite=ok&langcode=en&profile=standard&continue=1
and there is nothing happening. When I go to the drupal page again, it shows me the login page -- but I never had a chance to setup admin user, so I am stuck at that point.
So, how do I start from the very very begining? Thank you
Yes, on installation Drupal also does some other things beneath populating the database. It creates a settings.php file inside the /sites/default or /sites/mysite folder. Inside this file some information gets stored which then automatically gets skipped asking for the next time you reinstall Drupal (mainly it's which installation profile and the database credentials).
Simply delete the settings.php file and empty the /sites/default/files or /sites/mysite/files folder and you'll start from zero the next time you'll call your site in the browser.
The blank page may be caused by a misconfigured .htaccess file. Uncomment
RewriteBase /
in Drupal's root .htaccess file.
Pro Tip: If you are going to work with Drupal regularly, start all projects using this template: https://github.com/drupal-composer/drupal-project and choose PHPStorm as IDE. More about this template can be found on DO.
I have uninstalled MAMP and installed Acquia Dev Desktop -- everything works as expected, with the same version of Drupal.

Call to undefined function get_network_option()

I have a WordPress blog that I admittedly haven't been looking after/not upgrading the plug-ins etc I'm regularly emailed about - and now it's down.
No matter what page I go to, I get:
Fatal error: Call to undefined function get_network_option() in /home/gfptlkxn/public_html/blog/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 747
I've done a bit of googling on this and it seems a common problem, but more for people making changes/trying to use certain features etc - I've not changed anything/not doing anything fancy - it's just a simple blog.
So I figured maybe I could just go into my login page for WordPress, have a dig around, upgrade some plugins etc as a starting point.
Problem is, even my login page presents this error.
Any ideas where to start please?
There may be a compatibility issue between the WordFence plugin and your version of WordPress (as noted in the WordFence forums).
You should log into your website using FTP and delete the directory: /home/gfptlkxn/public_html/blog/wp-content/plugins/wordfence/
If you do not know or have FTP/SFTP access to your site, you may be able to log into your web hosting cPanel (or equivalent) and remove the directory using the File Manager feature.
Once that directory has been deleted, WordPress will be able to load again (and will automatically disable the no longer present WordFence plugin).
Once you've managed to log into WP-Admin, upgrade WordPress to the latest version, the install the WordFence plugin again if you need to.

drupal ERPAL installation Requirements Views SavedSearches Clean URL not enabled

Am new to drupal and i want to install drupal ERPAL i followed everything, and finally i installed successfully. After that while i run the file am getting following problem.
1.To start over, you must empty your existing database.
2.To install to a different database, edit the appropriate settings.php file in the sites folder.
3.To upgrade an existing installation, proceed to the [update script][1].
4.View your [existing site][2].
When i click existing site, it returns me to the same page
when i click update script, it shows requirement problem.
How do i enable the clear url, while installing drupal.
Thanks,
John Melchior.
It depends on your server. Please check that you have mod_rewrite in your apache enabled.

Uninstalling a magento extension

I've been trying to uninstall a magento plugin I've recently installed to reinstall it using Magento Connect. The log said that the plugin uninstalled successfully and if I go to the admin panel, the plugin's no longer there but when I went back to Magento Connect, the plugin is still listed there so I can't reinstall. Why is this happening?
Based on the answers, what I've tried so far are:
Clear cache through Admin Panel
Removed wordpress entry in core_resource
I've made sure wordpress xml in etc/modules is removed
I've made sure Fishpig folder in app/code/community is removed
Cleared cache in var/cache
Cleared cache in downloader/cache
Checked if there's xml for wordpress in var/package (there was none)
Reindexed magento
And none of this worked. The wordpress extension was still listed as installed in Magento Connect. I've been trying to uninstall repeatedly but it just won't go away even though the log said that the uninstall process completed. I've also tried reinstalling and upgrading. No success.
to remove the extension:
remove all the modules files, includeing the file which enables the module:
app/etc/modules/COMPANY_MODULE.xml
also make sure the entry is gone from the database by removing the correct entry in table:
core_resource
then refresh the magento cache
It should then disappear from connect.
Which module have you installed? Can you give me name so I can give you solution if possible for me. If module add new own tables in db then dont delete any module file otherwise may be magento crash. Its better way to uninstall from magento connect manages.
Clear the .cache folder in the downloader directory, in addition there is also another area where an xml can be present in var/package/
The package files are from magento connect so delete from here and have another check!
delete all files in var/cache/ and double check you are actually working in the right folder! if you have another caching system then clear it.
To delete the extension from Magento Connect (I believe you have already uninstalled it from Magento) you will need to delete the file var/package/Fishpig_Wordpress_Integration_{{version}}.xml
Thank you very much for all your help and time. I really appreciate it. I've managed to solve the problem. It's apparently a problem with permissions. I didn't realize soon enough that the permission for all folders had to be 777. I had most folders set to 777 except for 2 files on my etc folder (local and locals.xml) because of security issues. But after getting a go signal changing said permissions, I managed to uninstall the plugin and reinstall it. Now the Wordpress is fully integrated in the website with no problems and I've also returned the permissions for local and locals.xml back to it's original. Thanks again a lot for all your time.

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