Error when modifying some settings in Drupal 7 - php

I tried to add a field to be generated in an XML feed of articles but I got this error:
ErrorThe website encountered an unexpected error. Please try again later
Error messagePDOException: SQLSTATE[08004] [1040] Too many connections in lock_may_be_available() (line 192 of.....
I get this error often when I modify something in Drupal 7.

Related

Moodle 1.8.1 PHP Issue

I am working with an old version of Moodle (1.8.1) using PHP 5.4 an error occurs when clicking on a link to an assignment or trying to add a new activity. I am getting the following error:
Deprecated: Assigning the return value of new by reference is deprecated in /home/myduicla/public_html/online/course/modedit.php on line 141
The following line causes the error above:
$mform=& new $mformclassname($form->instance, $cousesection, ((isset($cm))?$cm:null));
The above snippet is from the following section:
$mformclassname = 'mod_'.$module->name.'_mod_form';
$cousesection=isset($cw->section)?$cw->section:$section;
$mform=& new $mformclassname($form->instance, $cousesection, ((isset($cm))?$cm:null));
$mform->set_data($form);
I tried to fix the problem by removing the &
$mform= new $mformclassname($form->instance, $cousesection, ((isset($cm))?$cm:null));
After changing this the error turned in interal server error, when clicking on a lesson or adding an activity. The error:
https://www.example.com/online/mod/assignment/view.php?id=9657
HTTP ERROR 500 This page isn’t working www.example.com is currently unable to handle this request.

Suddently I started getting this error on my SugarCRM instance."Getting Error “Below is a rendering of the page up to the first error.”

My SugarCRM is hosted at Microsoft Azure, suddenly I am getting this message:
This page contains the following errors:
error on line 2 at column 1: Document is empty
Below is a rendering of the page up to the first error.
A reboot does solve a problem, but I want to fix the core issue.
Please suggest. Reboot is fixing issue.

Getting a 500 error when I try to login to the Magento 2 admin panel

Currently trying to login to the Magento backend panel (version 2.2.7) but whenever I try to access the admin panel, I'm getting an error reading:
This page isn’t working www.websitename.com is currently unable to
handle this request.
HTTP ERROR 500
I've looked in the logs and there seems to be the following Apache error in them.
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a
member function getNext() on null in
/var/www/vhosts/websitename.com/httpdocs/generated/code/Magento/User/Model/User/Interceptor.php:529\nStack
trace:\n#0
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Manager.php(96):
Magento\User\Model\User\Interceptor->getInterfaceLocale()\n#1
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(77):
Magento\Backend\Model\Locale\Manager->getUserInterfaceLocale()\n#2
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/Locale/Resolver.php(65):
Magento\Backend\Model\Locale\Resolver->setLocale(NULL)\n#3
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(60):
Magento\Framework\Locale\Resolver->__construct(Object(Magento\Framework\App\Config\Interceptor),
'general/locale/...', 'store', NULL)\n#4
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Abst...\n'
Can anyone suggest a way to resolve this as I cannot currently get into the backend of My site.
It seems that this was being caused by a vendor extenion called "Moogento Pickpack". Disabling this extension seems to have caused the issue to stop for the moment.
I will get in touch with the extension vendor and try to find out exactly what was causing the problem.
Update:
We have now updated Moogento Pickpack to a new version and upgraded to Magento 2.3.2. The error here is no longer occuring.

Apache SOLR Error

I'm trying to work with SOLR on our Drupal 7 server, but I keep getting an error and I don't know what it means:
Exception: HTTP 400; orgapachelucenequeryParserParseException_Cannot_parse__AND_sm_field_product_type_TO__AND__OR_sm_field_product_type1_Encountered_____at_line_1_column_1_Was_expecting_one_of_____NOT______________________________QUOTED______TERM______PREFIXTERM______WILDTERM__________________NUMBER______TERM____________: orgapachelucenequeryParserParseException_Cannot_parse__AND_sm_field_product_type_TO__AND__OR_sm_field_product_type1_Encountered_____at_line_1_column_1_Was_expecting_one_of_____NOT______________________________QUOTED______TERM______PREFIXTERM______WILDTERM__________________NUMBER______TERM____________ in DrupalApacheSolrService->checkResponse() (line 455 of /vagrant/docroot/sites/all/modules/contrib/apachesolr/Drupal_Apache_Solr_Service.php).
The website encountered an unexpected error. Please try again later.
Does anyone know what the error means and how I would go about resolving it?

fixing Zend2 Framework 404 error has now given me fatal error: ModuleEvent::setModuleName expects a string as an argument; integer provided'

Fatal error: Uncaught exception '`Zend\ModuleManager\Exception\InvalidArgumentException' with message 'Zend\ModuleManager\ModuleEvent::setModuleName expects a string as an argument; integer provided' in C:\wamp\www\zf2-tutorial\vendor\zendframework\zend-modulemanager\src\ModuleEvent.php on line 64***
I'm new to Zend and trying the Skeleton application exercise
On attempting to load http://zf2-tutorial.localhost/album I was getting error
404 -"The requested URL could not be matched by routing".***
So I then followed some suggestions on Stackoverflow and it seems to have messed things up altogether for me.
One suggestion was to put die('here'); in the indexAction to see what error shows up. So I tried it, got the above error and then deleted the same line again from indexAction.
However the same error persists and I am unable to resolve it. I'm using WAMP on Windows 8.
To try to resolve it I cleared the DNS cache, cleared browser history and cookies, restarted all services, rebooted, refreshed WAMP...but still the same. Any Ideas please?

Categories