Site crashes after installing Devel modules with the Theme developer module - drupal

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.

Related

Wordpress plugin is not working after migration to a new server

I have moved my wordpress site to a new server, and login.php is working right.
But in there many plugins is not working well, for example the login page is not linked to any other page after I submitted my username and password.
Here is the login page link:
https://cpalocate.ca/login/
I have entered the invalid username and password, it will also show the blank page, but not error page.
When I add this code in wp-config.php
define('WP_DEBUG', true);
it showed this text. " Notice: Constant WYZ_THEME_DIR already defined in /home/.....".
And I have fixed that, but the same problem.
Now there is no any error debug, but the login page is also not working.
I changed the php version of my site in cpanel, but the same.
Anyone has your idea to solve this issue?
It is possible (I'd even say likely) that on your old server it was using PHP 5.6 (or at least a different version of PHP than your new server) and now you're on 7.0, 7.2 or even 7.3. It would seem that if that's the case, some of your plugins are incompatible.
You should edit your wp-config.php and add
define('WP_DEBUG', true);
so that you can see the errors on your screen, at least until you figure out which plugins are causing the problems.
If it is a matter of PHP version, check with your host to see if they can roll you back, or you'll have to either contact the plugin author and have them update the plugins, or you need to fix the code yourself, based on whatever the error messages you see are.
Edit: if this doesn't solve your problem, first try a default WordPress theme like twenty-nineteen or whatever. If that doesn't solve it, then disable each plugin one at a time until you find the culprit.
I have turned off all my plugins and turn back it one by one.
I have found one of my plugins is caused this problem, it is PM Pro Settings.
So I deactivated it and there is no any problem now.
I am using other plugins on behalf of that one.

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.

Can't load WP admin panel and can't figure out why..?

I have a WordPress site that is having some sort of an issue I can't seem to figure out. When I try to load the admin panel I get the following:
Notice: wp_enqueue_script was called incorrectly. Scripts and styles
should not be registered or enqueued until the wp_enqueue_scripts,
admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see
Debugging in WordPress for more information. (This message was added
in version 3.3.) in
/home/airassoc/public_html/wp-includes/functions.php on line 3370
Notice: register_sidebar_widget is deprecated since version 2.8! Use
wp_register_sidebar_widget() instead. in
/home/airassoc/public_html/wp-includes/functions.php on line 3201
Notice: register_widget_control is deprecated since version 2.8! Use
wp_register_widget_control() instead. in
/home/airassoc/public_html/wp-includes/functions.php on line 3201
Warning: Cannot modify header information - headers already sent by
(output started at
/home/airassoc/public_html/wp-includes/functions.php:3370) in
/home/airassoc/public_html/wp-includes/pluggable.php on line 1179
All of those notices are referring to core WP files, though, and WP itself has been updated to the latest version as of a week or two ago.
I'm thinking I must have something (theme or plugin) causing this, but the PHP notices aren't giving me any help. I've been going through (from the server) and deleting any plugins I think may be causing it but I haven't had any luck.
Any tip on how to troubleshoot this sort of thing would be greatly appreciated. Thanks!
Most likely if you have changed any files for your theme this can cause the dashboard and site to go down and not load, you may need to restore the default files for your theme you can do so by going to the public_html folder thru cpanel of your host and upload the theme files back again.

Drupal Site install on localhost after downloading source using FTP

I've been working on a Drupal site and pretty much know how to install Drupal on the localhost. But when I downloaded the existing source code from the main site to my system ( using FTP ), I am unable to install the site inspite of changing the database url in the settings.php file.
Also, when I run localhost/site/install, I am able to complete the installation but when I view the existing site ( localhost/site ) I am not able to see any content.
I am using Ubuntu 12.04 and Druapl 6.x.
Any kind of help would be greatly appreciated.
Update : Solved the above issue. Thanks to roberthernandez.
But the site which I downloaded is not installed as it should be. All the modules and themes in sites/all are available but, nothing is configured as it should be.
Update 2 : I asked a new question on the above issue. Please follow the link
Sounds like the white screen of death. To figure out the root of the problem, add the following three lines to the TOP of your index.php file (e.g. starting on line 2) to force echo of errors to the screen:
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
I'm going out on a limb and betting it's one of three things:
Your resources (memory, execution time, etc.) are too low.
You're missing mod_rewrite or another essential Drupal dependency module.
The permissions on your remote server are wrong. If you're not running SuExec, the files probably need to be owned by www-data:www-data. If you are, they will be owned by your ftp/shell user.
FYI - To see what modules are installed on your remote server, execute a phpinfo() on a new php page. You can copy the follwing to phpinfo.php and upload it to your webserver.
<?php
phpinfo();
?>

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

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.

Resources