VIEWS PHP - Constructing a Database Query

I want to run an uber simple database query within a view using the Views PHP plugin and Global:PHP field, but I am not fully understanding this process, so any pointers would help.

  • There are 2 areas for entering php, value code and output; how do I pass the value to the output?
  • General advice and/or Pitfalls about querying the database using views would be dandy.
  • I thought this would be a quick (albeit dirty way) of getting a custom value, but am I just on the crock or something by trying this approach?

CODE VALUE:

Object of class stdClass could not be converted to int

Error: Cannot use object of type stdClass as array em _block_get_renderable_array() (line 347

$build[$key]['#contextual_links']['block'] = array(
        'admin/structure/block/manage',
        array($block->module, $block->delta),
      );

How do I use 'delta' value on manage display D7?

I'm trying to filter out repeated events from a date field. I'm using the module https://www.drupal.org/project/date_repeat_instance do be able to create repeat date events set on the content type. I then show them in a view. In the view they show correctly on the date they are supposed to but I also have a small tooltip that shows the actual node and that just shows all the dates like the image below.  

Image 1

Not possible to upload any attachments

Hi guys,

I am having some problems with our drupal extranet, which I am not able to fix.

Everytime I am trying to upload a new post (specificly adding an attachment) - everything is freezing after a while with an AJAX debugging-exception.

The drupal server is hosted externally - I don't have any access to the machine.

Within the browser tools I can find out spamming such exceptions as copied following:

Installing Site on Aegir 3 with drupal

I installed aegir 3 on ubuntu 18.04 LTS. when i installed aegir 3 drupal also got installed. I am trying to add a new site using openatrium 2 as the platform. when the site finishes installing i get the following errors in the aegir log. Any advice would be very helpful.

count(): Parameter must be an array or an object that implements Countable form.inc:1434

-

Page keeps refreshing on mobile devices

Hello,

I am having an issue with my site working on smart phones.  The page loads fine.  However, as the user scrolls up or down through the page the page refreshes and goes to the top or bottom of the page.  The user often loses their place on the page and must scroll down again.  The page will refresh again causing much sadness and frustration.  I am assuming it is part of the media query and having some elements may be too wide which causes the page to refresh to a new width/size.  

The site is http://www.occ.ohio.gov

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x