Call ajax from html code

Hello, I have made a custom module very simple (I have ommited parts of the code).

I want to use the onClick event of an <a> html element to call a javascript function that uses ajax to call a php script that makes an update to the database. The problem is that the ajax function ALWAYS return ERROR but if I call the function with the browse console it works and If I enter directly by the url to the php script it works also. Which is the problem? Can anyone help me?

down.info

Multi-Site single sign on

Ok, I have two sites that have separate databases, same codebase. I need logins to work across both sites and there to be just one user database shared. But it seems like all the ways I used to do it all have security issues listed for them, saying not to use them. And every module I get pointed to says do not use. So how do you do this now?

How to debug a PHP7 bug

I am trying to switch my Drupal 7 site to PHP7 but there is a bug. If I edit an existing page when running PHP7, that page gets unpublished automatically when saving the edits. Publishing that unpublished page neither works. If I downgrade to PHP5 all works fine again.

How can I best debug this PHP7 issue?

Fix bug in Drupal Commons

Hi,
I need help to solve an issue within Drupal-Commons, version 7x-3.46.
On the site users can connect with other users via the Trusted Contacts feature, similar to friends on facebook. The issue is, however, that they cannot break such a connection. They can tick the box, click the button, but the connection is still there... Only administrators on the site can break an existing connection.
There is some discussion of this problem on this link:

Forcing SSL for Installs in Sub-directories?

Let's say my domain name is "foobar.com."

I have a Drupal 7 production install in public_html/foobar_production. (Alias of "development.foobar.com.")
I have a Drupal 7 development install in public_html/foobar_development. (Subdomain alias of "www.foobar.com.")

I want all incoming requests to be forced to use HTTPS and unless they've explicitly requested "development.foobar.com," they should be forced to https://www.foobar.com.

Sometimes when i search something acquia log show this

Hi

Sometimes, when I search for a word in the search bar, this error appears:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x