Skip to content
Advertisement

Tag: drupal

PDOException: SQLSTATE[HY000]: General error: 3 Error writing file ‘/tmp/MYHKgYpv’ (Errcode: 28)

I have installed Visitor Module Drupal 7. I have viewed the reports using www.domain.com/visitors. All the reports are working well. But when i view the user activity report it shows below error. PDOException: SQLSTATE[HY000]: General error: 3 Error writing file ‘/tmp/MYHKgYpv’ (Errcode: 28): SELECT u.name AS name, u.uid AS uid, COUNT(DISTINCT v.visitors_id) AS hits, COUNT(DISTINCT n.nid) AS nodes, COUNT(DISTINCT c.cid)

Getting Recoverable fatal error: Object of class Entity could not be converted to string in DatabaseStatementBase->execute() error

Getting website encountered an unexpected error, please try again while adding goals using goals module in demo framework drupal 7. and in recent logs I get the Recoverable fatal error: Object of class Entity could not be converted to string in DatabaseStatementBase->execute() error Answer I found a work around……. I disabled the personalize module and the error is gone. So

Drupal 7 – How to edit a value stored in variable table

I have inherited a multi-site in Drupal 7. There is a page where the client needs to edit the title element but this page is not a content type, a block or a taxonomy item!? I have queried the db and found only one instance of the value which needs to be changed. It is stored in the Variable table.

Need a script File to clear Cache Tables in a Drupal Database

I need to take a dump of MySQL Database, i usaully do these manual steps do Perform dumping.     login to phpmyadmin     select database     select sql tab     paste these lines         TRUNCATE watchdog;         TRUNCATE cache; and         TRUNCATE cache_admin_menu; And click on OK to clean the cache. I need to carryout the same

PHP Classes: Should I use 2 classes or 1?

I am currently trying to make a class that deals with a survey in PHP (Drupal). So far I have this: This is great, I can create a new instance of Survey, set the properties, and call save on it. However, I also want to be able to have methods that retrieve the results of these surveys from the DB

Can you Create your Own Hook in Drupal?

Is it possible to create your own hook in a Drupal module for other Drupal modules to consume? If not, is there a mechanism in Drupal for third party developers to provide hooks? If everything’s been a no so far, where in the core are the list of hooks implemented? As I understand things, Drupal modules work on a event

dompdf and img tag, image wont show

Here is the HTML just before $dompdf->render() and $dompdf->output() are called: All other invoices display the image fine when viewing in the browser, or printing it, or emailing it as HTML. When I click ‘Generate PDF’ inside of our application, it renders the invoice in PDF, except the logo is missing. I have put a debugging line in to email

Advertisement