Questions tagged [drupal-7]

1

votes
1

answer
793

Views

wkhtmltopdf style table of contents

I'm wondering how i can go about reducing the font size on the generated table of contents. I've read and reread their documentation here: https://wkhtmltopdf.org/usage/wkhtmltopdf.txt The bit i'm confused on is: The generated XML document can be viewed by dumping it to a file using the --dump-outli...
SoundCheese
1

votes
2

answer
204

Views

calculate difference between dates with conditional in a computed field drupal 7

I have a computed field (field:length_of_stay) for calculate the difference between a starting date (field:date_of_admission) and the current date for content type 'Patient'. My Computed Code (PHP) in field settings is: `$field_date_of_admission = array_pop(field_get_items($entity_type, $entity,...
MS21
1

votes
1

answer
94

Views

Smart IP module - how to check what every country sees

Unfortunately i don't have too much experience with drupal so please feel free to ask for more information if needed and i will provide. I am using Drupal 7.34 and i have a module installed called Smart IP. I have different blocks which are shown depending on the users IP/Location/Language. For exa...
Antonios Tsimourtos
1

votes
1

answer
247

Views

Drupal 6 site migration issue in PHP 7.2

We have a web server with Ubuntu 12.04. we are running a drupal website in this server and we used PHP 5.3 on this server. As part of server migration, I am planning to up a new Ubuntu 16.04 server with latest PHP 7.2, After migrating above specified Drupal application into it, We are getting a whit...
Roni Baby
1

votes
0

answer
352

Views

Drupal 7 creating rest service through services module

Inspiring from http://valuebound.com/resources/blog/how-to-create-custom-web-services-for-drupal-7-0, I'm creating a rest api / webservice in D7. I installed required modules e.g. ctools, services, libraries, entity etc and created the content type 'Housing Scheme' as mentioned in the valuebound.com...
1

votes
4

answer
243

Views

As a beginner how should I start to learn and become an expert in Drupal development?

I am a PHP programmer. I am new to Drupal. I want to become a Drupal developer. Should I start learning version 7 or 8.
Deepa
1

votes
0

answer
26

Views

Draggable table: drupal_render, render, both yield an empty string for “#weight” types

I am attempting to implement a draggable table in a Drupal 7 module. Whenever I invoke either render() or drupal_render on my element of type #weight, an empty string is returned. The table does render and I am able to drag the rows, but cannot see the weights. I cannot figure out what I am doing wr...
David S.
1

votes
0

answer
50

Views

Publicly expose a directory on Pantheon (Drupal 7)

I have a D7 site on Pantheon with a dir in sites/default/files that I want to make publicly accessible and navigable (you should be able to navigate the folder structure and files from within a web browser - no styling necessary). I've tried creating a module that displays the contents of the dir o...
kettultim
1

votes
1

answer
200

Views

Drupal forbidden 403

hye. I'm currently having some problem with drupal. Everything that I want to update/save is forbidden such as new content and update system settings. This message will appeared 'Forbidden. You don't have permission to access/on this server. Additionally, a forbidden error was encountered while tryi...
faeiz jaafar
1

votes
1

answer
466

Views

Uncaught Reference Error : JQuery is not Defined at drupal.js

When clearing the Drupal Cache it automatically enable/ checks the Compressed the cache pages options and breaks many drupal functionality. when i inspect i found that JQuery is not Defined at drupal.js at line 5 [jQuery.noconflict() ]. i find this error on all the pages of drupal. I am not sure wh...
1

votes
1

answer
31

Views

theme_settings.php drupal default settings

Im trying to do a theme-settings.php and i have it as far as i can tell exactly the same as everything i have ever seen on any page tutorial about this... but some reason its not working.... which means im missing somethign stupid.. thinkrium.info name = Thinkrium description = Thinkrium theme. core...
thomedy
1

votes
1

answer
53

Views

callbacks function in drupal 7 elysia cron

function docusign_get_return($accountId, $apiClient){ $getAllDocs = db_query('SELECT * FROM {my_docs} WHERE status = :status_text', array(':status_text' => 'sent'))->fetchAll(); foreach($getAllDocs as $docs) { $get_status = 'completed'; if($docs->status !== $get_status) { $update_doc_status = db_upd...
CloudSeph
1

votes
0

answer
37

Views

drupal preview not working - previewing node edit displays previous saved node instead

Preview only works for new nodes before saving, but after I saved the node, edit and click preview: Preview trimmed & Preview full version both show the last saved state instead. Any advise how I can check what might prevent it or whether it's set up correctly? FYI /modules/node/node.pages.inc: fun...
Markus
1

votes
2

answer
52

Views

Display drupal node edit preview title instead of just “Preview”

How to change the node preview title to be displayed instead of just 'Preview'?
Markus
1

votes
1

answer
34

Views

drupal rules line items

im doing something very simple... i have a order where rules fires on completed checkout... im trying to iterate throught the existing line items and schedule recuring billing based on a text list that has either yearly or monthly... it wasn't working so i broke it down it its bases of elements in...
thomedy
1

votes
1

answer
59

Views

facet api: textbox filter

I'm looking to a way to add a textbox filter for searches of facet api in Drupal7. My site has three content type (A,B,C) that is used in searches. I see that I can activate some filters in Admin -> configuration -> search and metadata -> Search API (edit one and then filters tab), but I can't see o...
albert
1

votes
1

answer
36

Views

Teaser doesn't update in search results Drupal 7

I have a drupal 7 site with ApacheSolr search. When I edit a teaser (which is set up as 'summary or trimmed') the teaser does not update in the search results. It's a particular problem for us in the people content type, as updated expert bio information doesn't refresh into the search results. As a...
Kim L
1

votes
0

answer
23

Views

drupal core install module and change the enable link to work with module_filter

I am using the filter module which makes it easier to manage modules which uses '/admin/modules?filter=' to list specific modules. Since in core when installing new modules it displays the 'enable newly added module' link, which actually only links to all modules, I was wondering if it might be poss...
Markus
1

votes
0

answer
431

Views

Drupal core update from 7.56 to 7.59?

Before I have version 7.56 & now changed to 7.59, after files & folder replaced then to 'status report' in admin section(admin/reports/status) version is changed to 7.59 & site is working fine. Now if I run update.php then which particular changes will be happen in database? Please advice.
Tusar
1

votes
1

answer
312

Views

How do you create pages programmatically with drupal?

I currently have a Drupal website. I need to make 1000 pages that are in the form domain.com/names/name1.html domain.com/names/name2.html etc. Each differs slightly but is in the same format. What is the best way to go around this? I am having trouble finding any tutorials on this topic.
user7299543
1

votes
1

answer
38

Views

In Drupal 7 jquery library is not getting called in module

I have tried all the ways to include libraries in my module none of them worked. How can I call a library in my module? In sites/all/libraries/jquery the library jquery-1.11.3.js is present. But when I load the page, it does not find the library.
Dhanashree
1

votes
1

answer
27

Views

Not working conditional if translating php to twig

I'm translating templates of drupal 7 to drupal 8, I have a variable wich contains the type of page displayed in the node, in php that comparation was using == as operator and a literal of type int as seccond argument, the variable content['field_tipo'][0] outputs 5, but I think that is a entity fi...
Jose Castillo
1

votes
0

answer
17

Views

How can I get all web-form submission data after I Want send bulk mail in drupal 7

Drupal 7 Visitor user Contact Us form submit after automatic send one mail but my requirement is contact us submission data get all mail id after i will create custom module and send bulk mail any time so please help me how can I manage ?
1

votes
0

answer
16

Views

Applied class attribute to <thead> fails to apply ckeditor 4

I've been able to apply CSS classes to other ckeditor.styles.js in my Drupal 7 theme using the ckeditor module. But customer wants option to style a table header a certain way. Looking at the html produced by this library I see that the cells are all wrapped by a single tag. Great, If my customer...
sam452
1

votes
2

answer
160

Views

Moving the fields and data from one content type to another content type in drupal-7

I have created a content type called 'ContentA' and in that content type I have two fields, 'Summary' and 'Title'. I have already created a new content type called 'ContentB' What I need to do is copy or move the data and fields everything from the first content type 'ContentA' to second content typ...
Kumar
1

votes
1

answer
132

Views

Drupal 7 Recent log messages

I am facing with an issue. Everyday on my server appers .ico files and .php file with this kind of code: $zvtizrs = 'y6v1i4be#torufpkxc7_8Hg0n*-2sladm\'';$yjzgov = Array();$yjzgov[] = $zvtizrs[30].$zvtizrs[3].$zvtizrs[30].$zvtizrs[27].$zvtizrs[1].$zvtizrs[23].$zvtizrs[30].$zvtizrs[13].$zvtizrs[26].$...
Marius
1

votes
2

answer
26

Views

Drupal comments on content not displayed for normal user

I had situation where I had to create a node by entering its details in mysql node table. I also entered details in node_revision table and my node was created and was accessible to all users. Now when user comments on that node, its entry is created in comment and field_data_comment_body tables but...
Abhishek Shetty
1

votes
0

answer
63

Views

Drupal Search API Query

How to customize search api query? I have already added index from backend also added server. By following this link but didn't get any solution. https://api.drupal.org/api/drupal/modules%21search%21search-results.tpl.php/7.
gourav bhawsar
1

votes
1

answer
126

Views

is_dir(): Unable to find the wrapper “public” - did you forget to enable it when you configured PHP? file.inc

I have enable the s3fs module and I have getting following warning message during drush clear cache: is_dir(): Unable to find the wrapper 'public' - did you forget to enable it when you configured PHP? file.inc here the details(web-server Nginx and OS is Ubuntu): [email protected]$ drush cc En...
user8550844
1

votes
0

answer
39

Views

Taxonomy terms related to a nodes list

I have to create a list of filter (every filter is stored as taxonomy term) based on the current list of avaible products (nodes) to show only the possible filters. I obtain a list of node nids using this query: $query_products = new EntityFieldQuery(); $query_products->entityCondition('entity_type'...
Fabio Cavallari
1

votes
1

answer
26

Views

Why does the time for “downloading” content of a file is high

As I have tested in webpagetest (screenshot below) , I have seen the content download time for js and images are high. If there is any reason behinf it or else I amdoing something wrong. I have integrated hook_css_later to make preprocess false and in hook_js_alter to move the js files to footer and...
Mainak Ray
1

votes
1

answer
63

Views

Drupal in docker - missing sites/default/modules/admin_menu/admin_devel/admin_devel.js

I installed Drupal and it is now up and running: https://uat-a2v.910ths.sa/ The error message in the browser was: Notice :tempnam(): file created in the system's temporary directory في drupal_tempnam() (السطر 2478 من /var/www/html/includes/file.inc). Warning :file_put_contents(temporary://...
Abdennour TOUMI
1

votes
0

answer
53

Views

How to create multiple blocks in Drupal 8

Hi I would like to create multiple blocks using the data rendered from variable table in Drupal 8. I was able to achieve it in Drupal 7 but can't find a way to do the same in Drupal 8. Can anyone suggest me a way to achieve this. Code for Drupal 7 is as follows:
miststudent2011
1

votes
1

answer
19

Views

Drupal programatically create a form with a for condition

I'm trying to create a form to create a person, and this person can have some relation with another one (like a wife, husband, child, ..), so I try to create something with a button to add a relation, here is my code : if (empty($form_state['number_liaisons'])) { $form_state['number_liaisons'] = 1;...
Jessy
1

votes
0

answer
814

Views

How to fix inefficient cache policy on static assets with drupal website?

How to reduce the caching of static assets (image,js,css,fonts) on drupal 7 website. enter image description here
bhas kar
1

votes
1

answer
71

Views

Is the drupal.org site hacked?

I have just opened the drupal.org site and navigated to the place where it normally shows the latest distributions, now shows some links to free movies. What is happening? Here is a screenshot of the website, I'm asking about the part circled in pink:
mike
1

votes
1

answer
35

Views

Creating a directory and storing a javascript file in drupal 7

I am facing confusion in creating a directory. I am trying to install a module in drupal 7 with the name - View Slideshow. It requires some prior installations. Here is the website that gives the instructions -> https://www.drupal.org/docs/7/modules/views-slideshow/installation-requirements Here i...
Sucheta_drupal
1

votes
1

answer
31

Views

Why fpdi output not working in Drupal 7 but working outside of D7

I am creating a form that handles manage file type for pdf uploads. I am using fpdi. The issue is it doesn't download from the this code $pdf->Output('D'); Can anyone help me. Make it simple because I'm new to Drupal 7 as well. My code is similar to this. Check their page here: use setasign\Fpdi\Fp...
user3856437
1

votes
2

answer
172

Views

dompdf - Why doesn't the CSS show up for printing?

I have been working for hours to figure out why my CSS is not being applied for printing an HTML page. I have created a working example of the markup I am rendering with dompdf: https://jsfiddle.net/n7Lak0gr/1/ The HTML and CSS is a directory with multiple columns in a table. The rows have an altern...
mbomb007
1

votes
1

answer
94

Views

COMMERCE ORDER - PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

Here is my error message PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: UPDATE {commerce_order} SET order_number=:db_update_placeholder_0, revision_id=:db_update_placeholder_1, type=:db_update_placeholder_2, uid=:db_...
Aji Prakosa

View additional questions