Questions tagged [6]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
0 votes
1 answer
433 views

How can I fix the "Predis\Client not found" error?

I have a project based on Drupal 7. I installed PHP 7.4, Redis, and php-redis on Ubuntu. I get a Class 'Predis\Client' not found error. The values in the setting.php file for the module are the ...
0 votes
0 answers
41 views

db_query giving old results

I've this query $results = db_query("SELECT * from irctc_qc order by updated desc limit 400"); I've even tried this: $time = time(NULL); $results = db_query("SELECT * from irctc_qc ...
  • 255
0 votes
3 answers
231 views

Use read-only database user to minimize security risks

I want to phase out an old, unmaintained Drupal 6 page. The website should still stay online, but should be read-only. I want to change the database user so that it only has read privileges. I don't ...
0 votes
0 answers
31 views

Views page menu shows up on all languages

I am working on a old website built on Drupal 6 which has two languages. There is a views on which I created a page for each language, but their menus shows up on both languages. I tried different ...
2 votes
2 answers
139 views

How can I temporarily prevent any logins?

I've a high visitor website in Drupal 6. For performance reasons I've removed Captcha on all pages. I don't want anybody to log in and we don't logout. Can I rename any Drupal file related to login-...
  • 255
0 votes
0 answers
25 views

Failed opening required './sites/all/modules/ctools/includes/utility.inc'

Failed opening required './sites/all/modules/ctools/includes/utility.inc' But I find utility.inc file already exists in /sites/all/modules/ctools/includes/utility.inc This error always show up when ...
0 votes
0 answers
34 views

How can I merge a development site with a production one on an earlier core version?

I work for a small company that currently has a Drupal 6 site setup and working well on a live Azure server. However, we need to migrate to D8 (should have done it years ago!) and are wondering how to ...
  • 123
0 votes
0 answers
65 views

Struggling with Clean URLs

I am in the process of upgrading an old Drupal 6 site to Drupal 8. I realize Drupal 6 is end of support but need to get the site working on my local Debian box, in order to work with it to get ...
1 vote
0 answers
285 views

Trying to access my old Drupal 6 site and getting an error

A few years back i created a Drupal 6 site and due to sickness i had to leave it. Well i am moving hosting and wanted to move this site over. I tried to hit the site but get this error. I assume ...
0 votes
1 answer
19 views

Different shipping $ for west coast

Let me just preface this by saying I know nothing of Drupal. I am a wordpress developer but my company just inherited 2 drupal sites from a company we recently purchased. I am using Drupal 6.25. I ...
0 votes
0 answers
48 views

InnoDB not locking a SELECT statement using db_query()

From Any way to select without causing locking in MySQL? I found a way to implement a select query in a InnoDB table without locking. The example code given there is the following. SET TRANSACTION ...
  • 101
0 votes
0 answers
58 views

Need to mass delete users

I want to start by saying this is my first dealings with drupal of any kind. I can turn a wordpress site inside and out but have zero experience with drupal. My company has recently inherited a ...
  • 1
0 votes
1 answer
122 views

How to compare before and after state in whatever_submit($form, &$form_state)

In a custom module, I have a form allowing some Create/Update/Delete data in a specific table of the database. In the submit part of the code, I'd like to compare 'before' state (what was displayed to ...
  • 982
0 votes
0 answers
44 views

Rules not firing at user creation for non default language

I created a rule that delete a user when a profile field contains a particular, troll specific pattern. It works perfectly when registering with the default language (fr) as current. When registering ...
1 vote
1 answer
134 views

Thickbox with Ajax loaded images

I using ThickBox to display large image when thumbnails are clicked. This works great with static content that;s loaded with the page. However, I'm now trying to use Ajax calls to display some of the ...
0 votes
1 answer
50 views

Remove taxonomy page navigation pages

I've a taxonomy page of a company which should show all nodes pages with this term. I want that this page list at least 20 or so nodes, then we will need to click 1 or 2 or 3 to go to next levels. ...
  • 255
0 votes
1 answer
590 views

Is there a patch for SA-CORE-2018-002?

How can I apply patch for my Drupal 6 site which is working quite fine until now? I've checked the patch in Drupal 7. It's using sanitize(). How do I add it in Drupal 6? At the same time I'm working ...
  • 255
0 votes
1 answer
99 views

How do I revert the changes made by a specific user?

I want to revert the changes made by a specific admin user in Drupal 6.37. In all the pages that I want to revert, the create new revision box was not selected. Hence, I have no way of finding out the ...
0 votes
1 answer
74 views

Feed Import is successful and shows number of nodes imported but nodes not listed under content

I am using the Feeds module to import content from a different Drupal site as xml. The problem is that the feed import is successful, and a message says how many nodes of the new content type it has ...
0 votes
1 answer
36 views

How do I stop the site content from being internally indexed?

I have a Drupal 6 website, which is indexing the content for internal use. I don't use the Search module to search in the nodes, but The Search module is installed and enabled, since it seems to be ...
0 votes
2 answers
1k views

How do I remove node URLs?

I have path aliasing, which gets the path from the title of the News article, working fine. However, in the Google index, I noticed that the canonical URL for nodes is working as well. So, Google is ...
0 votes
1 answer
46 views

D6 - Create a files table entry for a file

I have to migrate some content and everything is fine except the images. I'm getting the images using file_get_contents() and save the file in the drupal /files folder using the following code: ...
0 votes
1 answer
48 views

Why would piece of content of each content type be migrated but their text formats wrong?

I'm trying to migrate content D6 -> D7. I've written the importers (actually just edited existing ones) and run the process. However, as far as I can see, body of content are imported but with the ...
  • 568
0 votes
1 answer
160 views

Views doesn't split content into seprates list items

I need to produce a list of images with views 3 but these group items in only one li element...like this: <ul class="rslides"> <li class="views-row views-row-1 ...
0 votes
1 answer
34 views

How do I change the top picture for blueprint theme?

I just need to change the top image of the website to another image. The website is using Drupal 6 and the Blueprint theme. I am able to get to the theme building page, is that the right place to ...
0 votes
1 answer
48 views

String translations not working after setting language in page preprocess function

I am using the domains module (D6) with multiple domains on a 1 site, and we have multiple languages on 1 domain. (We have to have this set up with no other option). Internationalization string ...
0 votes
1 answer
71 views

Form submit is not firing on large form

I have an old D6 site. I created a form with hook_form with very many fields (197 rows * 6 columns = 1182 fields). It works good and form submit works properly. But when I add a new, 7th column to ...
0 votes
1 answer
111 views

How to configure Secure Pages

I'm using Drupal 6 on a website and trying to configure SSL for it. I installed the Secure Pages module. However I can't figure out the following things: How to give secure pages to all anonymous ...
1 vote
0 answers
68 views

PHP error - function redeclared form only on edit [closed]

I'm using Drupal 6. I don't know why but, since three days ago, I can't edit nodes with PHP filter that creates forms (using forms api). I get the next PHP error: PHP Fatal error: Cannot redeclare ...
  • 612
1 vote
1 answer
18 views

Trying to figure out which view to edit!

I have a main page of my site that has views and blocks. There is a photo view which I'm trying to figure out which one it is (drupal 6). I need to edit that view to change the sort order. However (...
1 vote
1 answer
855 views

How to add jQuery code only to the node add/edit page?

I'd like to execute some jQuery code on a particular element in the node add/edit page of a particular content type. Currently I do that by putting $(document).ready(function() { if (window....
  • 113
0 votes
1 answer
26 views

(Drupal 6.28) Blocks list suddenly doesn't show correctly

I realized today that blocks list (admin/build/block page) doesn't correctly show all the blocks implemented in the site. Most of the blocks are set as disabled and others are set in the wrong region,...
  • 1
-1 votes
1 answer
910 views

Drush 8.1.9+ with Drupal 6 results in "Drush command terminated abnormally due to an unrecoverable error" followed by the site home page source code

My sites are hosted on a Linux server with Apache 2.2, PHP 5.5, MySQL 5.6 installed. I use Drush 8.1.8 which I installed via composer and which works correctly with my D6, D7 and D8 sites. I can ...
2 votes
1 answer
751 views

Memory size exhausted when trying to run cron manually

On my Drupal 6 website, when I run manually cron, I get this error message. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4181580 bytes) in /dirname/includes/...
1 vote
1 answer
44 views

Manage/Assign Roles to Users Other than Administrators

I was asked to create a module that allows a user with the specific role to assign roles to other users w/no 'administer user' permissions or not an administrator. The user must not be allowed to edit ...
user avatar
2 votes
2 answers
41 views

How do I see if it's improving my response time?

I installed memcached for a Drupal 6 site. The status report shows it's properly installed. How do I check if it's working as expected, and speeding up my site?
0 votes
1 answer
592 views

SA-CORE-2013-003 - Files directory Not fully protected

I'm using Pressflow 6.38 and I'm trying to implement SA-CORE-2013-003 - Drupal core - Multiple vulnerabilities | Drupal.org inside of /etc/httpd/conf.d/pressflow.conf configuration file, like ...
  • 332
-1 votes
1 answer
120 views

How to install the Memcache module? [closed]

I'm running Drupal 6 website with AWS. I have downloaded the Memcache API and Integration module (from the official site). Do I need to just FTP the files into the memcache module directory and load ...
0 votes
1 answer
81 views

Need help optimizing a site for speed and response time [closed]

In my Drupal 6 site (fairly busy about 200 anonymous users on average at at time) I have the following setup to speed up the site. Caching Mode - normal Optimize JavaScript files Gzip enabled via ....
1 vote
1 answer
2k views

I need to switch from database logging to syslog

I'm running a drupal 6 website and I was thinking of speeding it up following these steps: Completely stop database logging Enable syslog How do I configure Drupal to use syslog? What if I enable ...
1 vote
3 answers
462 views

How do I remove the "Request New Password" link?

When I visit www.example.com/user, there is a page that shows the login/password and as well as a "Request New Password" tab. How do I remove this "Request New Password" tab from the user page?
0 votes
1 answer
2k views

How do I clean up the sessions table?

I need to delete entries about anonymous user login from the sessions table. I read what reported in https://techcommons.stanford.edu/topics/drupal/sessions-table-cleanup. Which PHP setting in the ...
2 votes
1 answer
70 views

How are current anonymous users calculated?

I have a site running Drupal 6. When I log in to add new articles, it shows Current Anonymous / Authenticated Users. How is this number computed?
0 votes
2 answers
110 views

Dates disappear on 'Edit'

We are still on Drupal 6 which has worked fine for years, and I have not done any updates. We have Date/Time boxes on our "Events" items with pop-up boxes (see image). But since recently the when you '...
1 vote
1 answer
45 views

Content missing

I inherited this production 6.36 website (20 or so multisite) that is heavily customized. Lately, it has begun to show weird behavior - like some js not working for non-admin users. One issue that is ...
4 votes
1 answer
1k views

How to get accurate information about available security updates after End-of-Life?

For a Drupal 6 site that use the update module, the "Available updates" report no longer shows accurate information about available security updates. Of course, this is because after Drupal 6's End-...
0 votes
2 answers
350 views

Is there any hook_node_pre_submit() like hook?

I have a Drupal 6 site where I am using the Webform module. There are business validations written in JavaScript, but users can bypass them by disabling JavaScript. Is there any hook_node_pre_submit(...
  • 63
1 vote
2 answers
449 views

How to get all database which can be used in 'db_set_active'

Is there any way to list all possible database connections using Drush? I am debugging an application where db connections are not written in settings.php and I'm not able to find all possible ...
  • 595
2 votes
1 answer
24 views

Hide "language menu" next to search bar / login menu

I have inherited maintanance of quite horrible looking website that is currently running version 6.x of Drupal. I am now trying to streamline / delete / disable as many unnecessary things as we can on ...
2 votes
1 answer
315 views

How to make sticky articles show up first in a list of articles?

I have a view showing a list of articles, sorted by date. I tried enabling the sticky article option in the publishing options. This made an article I had jump to the top of the list, but then a new ...

1
2 3 4 5
54