Go Premium for a chance to win a PS4. Enter to Win

x

Drupal

Drupal is an open-source content-management framework written in PHP used as a back-end framework for websites and is also used for knowledge management and business collaboration. The standard release of Drupal contains basic features common to content management systems, including user account registration and maintenance, menu management, RSS feeds, taxonomy, page layout customization, and system administration. Drupal runs on any computing platform that supports both a Web server capable of running PHP and a database to store content and configuration.

Share tech news, updates, or what's on your mind.

Sign up to Post

In a Drupal 7 site, we have a node entity type for stored documents.  This type has two custom fields - year and reference - which uniquely identify the node.  These values look something like shown below, with the format being "<reference><hyphen><year>".
S123-2015
S456-2013
S1145-2015

Open in new window

I'm receiving a list of these document references (perhaps hundreds at a time) and need an efficient way to find the corresponding node IDs.  What's the best way to do this?
0
New feature and membership benefit!
LVL 11
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

This is Drupal 7 with Commerce installed.  Suddenly the menu item 'Çustomer profiles' below 'Store' gave a White Screen of Death. The reason was that the path in the menu item was different from the path in the original View. So I went to the Menu and corrected the path. Since then the entire option 'Store' has disappeared from the menu.
So I added a menu item 'Store', but that now gives page not found. How do I get my menu back.
(The Drupal documentation warns for disappearing menus, but give no insructions).
0
Hi,

After migrate Drupal 8.1 to 8.3.7, this error is shown at web site :


The website encountered an unexpected error. Please try again later.

At apache 2.4 error, I can see this:

 [Thu Sep 21 21:30:38.185852 2017] [proxy_fcgi:error] [pid 22862:tid 139697256294144] [client xxxxxxxxx] AH01071: Got error 'PHP message: PDOException: SQLSTATE[HY000] [2002] Connection refused in /volume1/web/drupal/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php on line 79 #0 /volume1/web/drupal/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(142): PDO->__construct('mysql:host=127....', , Array)\n#1 /volume1/web/drupal/core/lib/Drupal/Core/Database/Database.php(376): Drupal\\Core\\Database\\Driver\\mysql\\Connection::open(Array)\n#2 /volume1/web/drupal/core/lib/Drupal/Core/Database/Database.php(166): Drupal\\Core\\Database\\Database::openConnection('default', 'default')\n#3 [internal function]: Drupal\\Core\\Database\\Database::getConnection('default')\n#4 /volume1/web/drupal/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(79): call_user_func_array('Drupal\\\\Core\\\\Dat...', Array)\n#5 /volume1/web/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\\Component\\DependencyInjection\\PhpArrayContainer->createService(Array, 'database')\n#6 /volume1/web/dr...\n'


I run MariaDB10 and PHP 5.6

Any ideas?

Regards
0
I have a website using Drupal 7.54 along with a database. I typically use phpMyAdmin to access the database. It usually takes about 4 minutes just to get to the main page on phpMyAdmin after logging in; viewing the databases and tables takes a long time to load as well. Since I am using Drupal, there is going to be a lot of tables stored (tables are innoDB). I have used a module to clear the revision tables, tried setting $cfg['MaxExactCount'], changing the "host" value from "localhost" to "127.0.0.1", updating phpMyAdmin, and changing the theme to its original display. What am I missing? What am I doing wrong? Any help will be greatly appreciated.

Notes:

Database server Server: Localhost via UNIX socket Server type: Percona Server Server version: 5.6.32-78.1-log - Percona Server (GPL), Release 78.1, Revision 8bb53b6 Protocol version: 10 Server charset: UTF-8 Unicode (utf8) Web server

Apache Database client version: libmysql - 5.6.32-78.1 PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation PHP version: 5.6.29 Version Information: 4.7.3

Also, lately I have been getting the error - mysqli_real_connect(): (HY000/1040): Too many connections, after I change the theme to its original display.
0
I have someone who wants me to send or redirect all 404 errors to the main page of a website. We are using Drupal 7.54. On the site information page (.../admin/config/system/site-information) in the 'Error Pages' block, it allows me to put a link for 'Default 403 (access denied) page' and 'Default 404 (not found) page.' I just tried typing "node" for the 404, so it would redirect to the main page of the website. However, this does NOT redirect me to the main page. It does redirect, but not to the main page. What am I doing wrong? What am I missing? Could the answer be somewhere in includes/common.inc (similar to what was found on https://www.drupal.org/node/178653#comment-985665)? Any help will be greatly appreciated. Thank you.
0
I have no issue connecting to Acquia using FileZilla using SFTP, but when I try the exact same .ppk file and credentials, it's saying that my username and password aren't correct. I'm looking for help on how I can connect to Acquia's server using Dreamweaver. Can you explain how to do this (since using the same credentials and ppk file that I use with FileZilla isn't working)??  Thanks, Gary
0
I’ll try to make this short and succinct.  I have a Drupal 8 theme that I purchased (I won't name names) and all was good for the first month but then I noticed that whenever I made system changes to the site I would get errors like this (especially when I did a configuration Import):

Configuration block.block.footer depends on the ntv_block_background module that will not be installed after import.

This specific module does not exist, that I can find, but I believe that it is a module that the developer used during development and did not uninstall it correctly when he decided he did not want to use it anymore.  So the data that I acquired from the theme’s SQL was bad to begin with.  I have tried contacting the original author but I get no reply and have given up on that channel.

Digging Deeper: In the SQL database under the Config table is a data blob that contains references to this module in about 63 different data blobs.  a relevant section of the data looks like this:

s:20:"ntv_block_background";a:8:{s:7:"disable";s:7:"disable";s:5:"color";s:7:"#000000";s:8:"bg_image";a:0:{}s:13:"bg_image_type";s:7:"default";s:9:"bg_repeat";s:2:"no";s:17:"bg_image_position";s:0:"";s:13:"bg_image_size";s:0:"";s:18:"background_overlay";s:0:"";}

My Question: There is too many references to remove by hand, Is there a utility (drush or other) to remove meta-data from a module that I no longer have access to and purge the unused data so that it does not …
0
I have an existing site (I inherited, didn't build) that was functioning properly...not sure when it went south.

SMTP auth settings are as follows: SMTP server is onsite exchange, port 25, no encryption, no auth. No errors and the email is sent as desired when I test via SMTP Auth Support module.

https://i.imgur.com/mDulEnY.png

When attempting to submit via our webform, this error is thrown and no email is sent.

https://i.imgur.com/iXO10JV.png

I can't find anything in the webform itself that seems pertinent.

I'm not sure if it's on the Drupal side or if it's the Exchange server.

Any ideas? I'm a total Drupal noob, please take pity while responding :)

Thanks!
0
I'm trying to setup a single sign on to Drupal with simpleSAMLphp and simpleSAMLphp_auth module from Drupal. I'm able to login now but the "Automatic role population from simpleSAMLphp attributes" roles do not seem to work. I have the following role and when I'm logged in, I do not have the local Drupal admin previliage.

1:mail,=,charlie@example.com|1:isMemberOf,=,CN=WEB.ADMIN

When I tried to access the mysite.com/admin/ I get an Access Denied.
0
Error message
EntityFieldQueryException: Unknown field: media_gallery_expose_block in EntityFieldQuery->addFieldCondition() (line 817 of C:\xampp\htdocs\ministry of trade\includes\entity.inc).
0
Free Tool: ZipGrep
LVL 11
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

i have songs album. i have one master  button if customer wants to add all song then they click on master button.
please give me help how to add all product by one click.
0
We had a user here who installed our Drupal CMS, and today when the user account was removed it apparently took the Drupal install with it, as our site went down and only gave a file listing afterwards.  We're a small fire department, and very few IT-capable folks.  I'm barely competent on Linux honestly, but can make my way through some of it.  

What I've done so far is re-downloaded Drupal, and extracted it.  I'm hoping that our site will still be in the DB, but without the CMS I can't tell.  Regardless, the new install tells me that the settings.php isn't writable.  I've made it as writable as I possibly can, and I'm not sure where to go from here.  The default sites is 755, and settings.php is 655 as it's indicated as needed.  I've changed the ownership and group to "www" for damn near everything, and still can't get the install to progress.  

Help??
0
We have installed the addressfield_autocomplete module.  It is working as expected.  When I create a content type with an addressfield type, I can set the widget to the autocomplete, and the form works beautifully.

I have a custom form created through the Forms API, and want to add addressfield to it.  The module did not support this initially.  I found a resolved issue requesting this same feature, and implemented this patch.  That worked fine - I have the addressfield block on my custom form.  However, it is not using the autocomplete widget.  How can I tell Drupal, via Forms API or other code-based solution, to render this field with the autocomplete-widget?
0
I have a Drupal site. The server that the Drupal site is on has several folders that I'd like to impliment Role based access to. The roles could be impliment to the folders, and roles also for designated files within the folders.

The folders are added to the server through a FTP process and not using Drupal.

How would I impliment the Role based access?
0
Dear all,
How do you classify products which provide a SDK and host modules like following products:
MS SharePoint, DotNetNuke, WordPress , Joomla  Drupal,  Magento , osCommerce, ZenCart , VirtueMart
I just need a name to use it in my research paper,
Thanks
0
I need someone to help me migrate from a Drupal site thats tampered heavily from last 7 years with custom modules to wordpress thats well designed with minimal functionality. Seo friendly/Mobile/all latest functionalities...
0
Drupal 7 custom entity
Use hook_entity_info and hook_entity_property_info to create custom entities.
In hook_schema, drupal 7 docents foreign key but not implement it.
How to have a entity reference field in a custom entity to reference another custom entity? So can use this in view for relationships.
0
Hi

Ive got 2 sites: a WP site and another drupal site I want to add an opt-in form to build an email list, but I need a couple of things:

1/ first of all I only need to ask for their email but I need to know in which page (URL) they entered their email because I plan to insert the opt-in in hundreds of pages so I need to know an email came from which page exactly

2/ I need to have the option to choose in which way the opt-in form is displayed, Id like to choose between a typical pop-up or a form in the sidebar or in the middle of the post at a specific point, or the form appearing in the sides, I need to have a wide array of options for the placement and behaviour of this form

Ive seen things like Thrive Leads, I like that a lot, but right now it escapes my budget, could I get something in the same vein but free or cheaper?

Ive tried Optin Forms but I can't seem to find the way to customize its behaviour and placement on the post, other than after a few paragraphs or at the end of the post, but no side or pop up options. Also I dont know if theres an option to see from which URL came every email address

As for the drupal site Ive got no idea if drupal uses a similar plugin system than WP, and what kind of opt-in is recommended for a drupal site

thanks in advance for any help
0
In Drupal 7 website:

1. how do you integrate blog content from a specific category from another site
onto this current site in a way that avoids the delays associate with RSS ?

2. How you do news aggregation in Drupal 7?

3. How to handle full video file transfers in viewer uploads (they want to edit
video).
0
Free Tool: Path Explorer
LVL 11
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

I setted PHP parameter to

php_admin_value upload_max_filesize 10240M
php_admin_value post_max_size 10240M
php_value max_input_time 900
php_value max_execution_time 900
#php_value memory_limit -1

CentOs 6.5 64 Bits
0
Use case:  When the Status is Overdue, the word overdue should display in red, and if it's Accepted, it should display as green.

I was hoping to use Rules to set this up, but don't see options to get this logic in.

screen capture
0
Hi

I have been assigned to create a social networking site with drupal, could someone please tell me how create a facebook like news feed page  (where users can update there statuses etc) that will be on the home page.  

If you could provide a step by step walk through that would be greatly appreciated

Many Thanks
0
Hello,

I am trying to get drupal multisite running on centos 6.6 vps.
My main site main.com (which has its own mysql db) is working fine, This site has also the domain access module installed (https://www.drupal.org/project/domain).

My other 2 sites are in the main.com/sites folder (i.e. main.com/sites/mysite1.com and main.com/sites/mysite2.us). These 2 sites share another existing mysql database. They both have settings.php with same db info and different base_url strings.

The main.com/sites directory also has sites.php file which looks something like this:
$sites['default'] = 'main.com';
$sites['mysite1.com'] = 'mysite1.com';
$sites['mysite2.us'] = 'mysite2.us';

When trying to access either mysite1.com or mysite2.us I am getting 403 Forbidden error (Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.)

When trying to import existing install (in Installatron) for the 2 sites I am getting (Error: Unable to detect the source installed application's database information. Please contact support for assistance.)

How to resolve this to get it working?

Thanks.
403.PNG
installatron.PNG
subsites.PNG
0
I created a DRUPAL site on GoDaddy for audiofiles of interviews.  It worked fine BEFORE I added SSL. Now, when you click on a file, it tries to launch Windows Media Player then says: "Windows Media Player cannot connect to the server. The server name might not be correct, the server might not be available, or your proxy settings might not be correct."

If you hover over the file, you can clearly see the location of the file under a PRIVATE folder.

Then if you RIGHT click on the audio file to try and download it, it creates a random name, instead of keeping the file name like a normal download.  THIS IS WHAT I NEED FIXED THE MOST!  

In Drupal, we are using the AudioField pages and allowing MP3 and WMV files.
0

Drupal

Drupal is an open-source content-management framework written in PHP used as a back-end framework for websites and is also used for knowledge management and business collaboration. The standard release of Drupal contains basic features common to content management systems, including user account registration and maintenance, menu management, RSS feeds, taxonomy, page layout customization, and system administration. Drupal runs on any computing platform that supports both a Web server capable of running PHP and a database to store content and configuration.

Top Experts In
Drupal
<
Monthly
>