Questions tagged [6]

Version tags should be used only 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
1answer
945 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
1answer
43 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
2answers
90 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
1answer
44 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
1answer
556 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-...
1
vote
0answers
156 views

Drupal 6.37 to 8.2.x upgrade with drush fails with 1115 Unknown character set: 'utf8mb4'

I am upgrading a legacy Drupal 6.37 site running on mysql 5.1 to a fresh install of Drupal 8.2.1 with mysql 5.7.16 on a remote host. I have installed the migration modules required for drush and am ...
0
votes
2answers
80 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(...
1
vote
2answers
238 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 ...
2
votes
1answer
19 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
1answer
179 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 ...
4
votes
2answers
1k views

Use wget to mirror a site to a static site

I'm trying to use the following command to mirror a Drupal 6 site which needs to be archived as a static site. Unfortunately, I've only been able to find a static generator for Drupal 7, not 6. I'm ...
0
votes
1answer
50 views

Views rewrite output for image url add divs

So in views , I had created a block display with this fields: image field : imagecache URL (exclude from display) image field : imagecache for resized image (exclude from display) image field : ...
0
votes
1answer
47 views

View filter computed date field

i have content type in Drupal 6 that has date field, that is date when some historical event happened. I want to create a view that will show all historical events that happened today. I created 2 ...
0
votes
2answers
139 views

Why did all my themes disappear when I upgraded to PHP 7? [closed]

Today I had to do some support on a Drupal 6 website and when I tried to refresh a CSS file, all the themes disappeared. When going to the theme page, nothing in the list at all. Not even the core ...
1
vote
0answers
165 views

Cannot log in my site: any idea why the session code would fail? [closed]

I have several Drupal 6 websites, most of which I can still use as normal. However, I have one where I cannot log in anymore, at least not without adding a hack to the session code. When the code ...
1
vote
3answers
92 views

Get user account content object loaded in node.tpl.php [closed]

By default $account->content object is loaded only on user page. I want to print $account->content in node.tpl.php. In user-profile.tpl.php, I tried echo "<pre>"; print_r($account); and $...
2
votes
1answer
169 views

URL alias in page.tpl.php

I try to make link 'Mobile version' on site page site.com/page. This link leads to this page but on subdomain m.site.com/page. I use page.tpl.php. I try to write this. <a href="http://m.site.com/&...
0
votes
0answers
29 views

How to update a content type node after node_submit?

I am in D6 and need to modify a table entry of a content type field (content_field_p_fieldname) after node submit . What i done is wrote a hook_form_alter and written a code to update in it . This ...
0
votes
0answers
72 views

Can't add or edit menu item

Something was happened to my site, so now I can't add or edit items in all my menus: I see just buttons 'Save', 'Cancel'. Where can I find solution of this problem, what can be a reason of this? I use ...
0
votes
1answer
54 views

How can I restore the security of an old site with a sql injection vulnerability which was probably exploited? [closed]

Edit: Sorry, the question was marked as unclear. In a nutshell, there are two questions: Does the code below indeed create an sql injection vector? (It seems clear that the answer is yes, even though ...
1
vote
0answers
77 views

How to get the ckeditor.js script to work on a site that uses the Google pagespeed module and Drupal's ckeditor?

On a Drupal 6 site I installed Google pagespeed module. It's working fine but my ckeditor.js script is not working. I searched Google and found there is known problem with pagespeed and ckeditor. ...
0
votes
1answer
91 views

Block not showing on page

I have a weird issue with a D6 site... A block I've created will not show up on the page. It appears to be disabled in the blocks list, although other blocks that /are/ showing up seem to be disabled ...
0
votes
0answers
49 views

How do I create a PHP page?

I need to create a web page in Drupal 6. The site has multiple PHP pages under different themes. For example, inside opt/mycompanyWeb/web/sites/all/themes/custom/MyCompanyInterior there are a bunch of ...
0
votes
1answer
48 views

Associate one item of content with one taxonomy term

I have a view of type 'term' that displays in a grid, all the terms in a vocabulary. I need to display 2 images per term, but this is not possible I believe. (E.g. the taxonomy Image module only ...
0
votes
2answers
239 views

Exit pop up with registration form

I want to have anonymous users to have a pop up displayed after they visit first page and moving to second page. The pop up should have a Name and email and after submission user gets registered to ...
1
vote
1answer
220 views

How do I produce 2 lists with one display?

I'm back on this issue for me because I would to implement Responsive slideshows with thumbnails and many of those use 2 elements to display thumbs and full image. So I know I need to edit the style ...
1
vote
1answer
629 views

Change ID of webform hidden element

How can I change the ID of a hidden element (created with the Drupal 6 webform module) using hook_form_alter()? The ID that it outputs is something like '#edit-submitted-component-name'. I need the ...
0
votes
0answers
18 views

How should I set OR operators between filters?

I'm maintaining a legacy Drupal 6 site that is running Views 2. I'm building a view that displays content of three different types. One (and only one) of these three content types has a checkbox field,...
1
vote
1answer
37 views

How to edit CCK form?

How I change node edit form, which created by CCK module? Now if the form is submitted, CCK update some field in mysql database. I need to change this, because in one form input contains three ...
1
vote
1answer
52 views

How do I find a template?

How I determine which template or form is responsible for processing node of page with this URL: mysite.com/node/node-number/edit ? I think, that Drupal find the template of edit in this files: page-...
1
vote
0answers
21 views

Search result problem with Taxonomy Term-Names in the result

I need a solution for following Drupal 6 problem: In my search results, taxonomy terms are appearing in the summary -> https://www.dropbox.com/s/reg4yebpuwvgref/Screenshot%202016-06-03%2009.13.47.png?...
1
vote
1answer
115 views

List of nodes that have no taxonomy terms

I'm maintaining a D6 project, where the customer wants to see a list of nodes where no taxonomy terms were added. I want to solve this with views. I already tried some Filter settings for that, but ...
1
vote
1answer
58 views

Database in settings.php doesn't exist yet site is live. Where is the data?

I've inherited a Drupal 6 site running on an Ubuntu 10.04.4 LTS server. I'm trying to understand the configuration of it to create a local version of it work on. I can't figure out how the data is ...
1
vote
0answers
31 views

How to render form elements using form alter

I need to render contact form field elements using form_alter function. When I print $content variable in tpl file, the contact form loads entirely, instead of that I need to render fields separately ...
0
votes
1answer
50 views

warning message after uprgraded to drupal 6.38

I upgraded drupal 6.2 to drupal 6.38 to apply the security patch to ignore the vulnerabilities as mentioned in https://www.drupal.org/drupal-6.38-release-notes . But after updating to 6.38 when i ...
0
votes
1answer
56 views

Create dynamic textfield?

I have a form builder containing the following code. $form['finput']['noreff1'] = array( '#type' => 'textfield', '#title' => t('No Reff1'), '#size' => 60, '#default_value' => $...
-1
votes
1answer
128 views

How do I change a form name attribute to something else?

I'm using a Drupal 6 custom form, and I want to change the form name attribute to something else. Is this possible? For example, I have this. <input type="text" name="field" maxlength="128" id="...
0
votes
1answer
38 views

How do I adjust the 'Create New Account' settings?

New registrations are asked to create a password which is, in my opinion, excessively strong. Where do I go to adjust the password strength and other 'new account' settings? When I looked in the ...
0
votes
1answer
32 views

How to use titles instead of IDs in urls for nodes?

I am managing a site right now (Drupal 6) and the links are all coming out in the form http://example.com/blog/12553. I'd like these urls to be based on the name of the article. I could swear that ...
0
votes
2answers
40 views

hook_block visibility

I have a custom module defining a block which needs some complex page visibility rules that I'll write later. In building out the basic hook_block code the visibility and pages settings don't seem to ...
0
votes
0answers
30 views

Empty Views with content imported by Feeds CSV

I import content in D6 with Feeds (+Tamper) module via a CSV file and it work great. But after I want to display a list of nodes freshly created and the views doesn't display news nodes... :/ What is ...
0
votes
1answer
524 views

How to set readonly or locked a select webform field?

I want to lock a prefilled select webform field but no option is provided by the UI.So I think to do that programmatically. Actually I do in a hook_form_alter: $form['submitted']['...
0
votes
1answer
970 views

Decryption failed because the HMAC could not be validated - error on Migration d2d dashboard page

I'm trying to migrate Drupal 6 to Drupal 7 with Migrate d2d module. Problem is that I get 2 errors on Migrate dashboard page: Decryption failed because the HMAC could not be validated. Migration ...
1
vote
0answers
78 views

views-more.tpl.php does not work [closed]

I followed the Drupal documentation (https://api.drupal.org/api/views/theme%21views-more.tpl.php/6) and saved my views-more.tpl.php inside my theme folder. However, it does not work and seems like my ...
0
votes
1answer
72 views

Content Migrate throwing `MediaInternetNoHandlerException` errors for embedded video fields

I am getting the following error on multiple nodes when using the content migrate module on a Drupal 6 to 7 upgrade. Requesting rollback of field "field_video" due to failure to convert record:array (...
1
vote
3answers
1k views

Solve “Cron run failed” without Watchdog

Some years ago i wanted to turn off watchdog because it's memory and db consumption, but today i need info about why my cron isn't running because need to use Search module from now? Trying to run ...
1
vote
0answers
56 views

Trying to create a module for image management [closed]

I would like to create an image manager for a running Drupal website. This page should be able to add and remove the images with its name and other attributes. How could I achieve this using Drupal ...
-1
votes
1answer
625 views

Warning: call_user_func_array() expects parameter 1 to be a valid callback [closed]

I have two custom modules: 1. oldmpp 2. newmpp (copying from oldmpp but modifying some parts). This method works for my other custom modules. But this time, it gave me this error: warning: ...
1
vote
1answer
37 views

How to find and remove a cached image?

I have an image with url like: http://example.com/index.php?q=sites/default/files/imagecache/node-gallery-display/123.JPG I want to remove this image but don't know where it stored in database. ...
1
vote
0answers
17 views

How to make node view show approved, not latest

I've got a client with an old Drupal 6 site that uses workflow and revisions. They want a blog added with related content types and Views. All works except that for the node page itself, it shows the ...