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)
Tag: drupal
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
Remove stylesheet selectively in Drupal for page
I am trying to make different layout for the front page. In that process I declared new stylesheet called “front-page.css” and page–front.tpl.php. I am using a Zen subtheme which loads responsive-…
How to output (to a log) a multi-level array in a format that is human-readable?
I’m working on a drupal site and when debugging, I am always having to read through long, nested arrays. As a result, a large portion of my life is spent using the arrow, return, and tab keys, to split up 1000+ character strings into a nested, readable format. For drupal devs, I can’t use devel’s dsm(), as I’m working with
Altering Title on Drupal Node Delete Confirmation Form
When you attempt to delete a node in Drupal, you’re taken to a confirmation page whose title is… Are you sure you want to delete {title of node}? I’m attempting to alter the title of this page …
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