Zend mongo undefined Collection::setSlaveOkay() - zend-framework

I've been attempting to implement mongo in zend using doctrine. I've been gradually working my way through the various issues, before being stumped by this:
Call to undefined method Doctrine\MongoDB\Collection::setSlaveOkay() in [project]/vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php on line 349
When searching for a fix, I came across "upgrade mongo to at least 1.1.0". So I ran:
sudo pecl install mongo
I got the response:
pecl/mongo is already installed and is the same as the released version 1.3.1
install failed
Leading me to believe I am already upgraded to higher than 1.1.0 (correct me if I'm wrong).
Can anyone tell me what I need to do to fix the issue?
Thanks

Yes had the same issue... upgraded my local install of
https://github.com/doctrine/mongodb
from branch "master" to "readprefs"

Related

upgrading jsserv giving this error: Could not install packages due to an OSError

This is what I am getting when upgrading jaseci to the lastest version. Can anyone help?
It looks like you might be running a jsserv server while trying to upgrade. You would have to kill that process first. Also try doing a pip uninstall jaseci_serv first.

Unable to connect to postgresql with pgAdmin4: readonly attribute error

I have a local postgresql 10 server (tested the same on 9.6, don't think it's related to the DB at all, only to pgAdmin4, as pgAdmin3 works just fine)
As in the screenshot, I am trying to connect to the localhost db with user postgres on a fresh installation, but I keep receiving this message:
readonly attribute
I searched everywhere for this error, but couldn't find any useful solutions or workarounds
pg4Admin 4 now is working for me. I got an update of python-psycopg2 to 2.7.4-1.pgdg16.04+1 amd64 version on my KDE Neon, that solved, to me, the readonly attribute problem.
This error is related to psycopg2. Please verify the version of psycopg2 installed on your system and update it to at least version 2.7.
At version 2.7 psycopg2 connection class the notices attribute is writable. On earlier versions it is a read only attribute.
If you comment the code in line 313 of /usr/share/pgadmin4/web/pgadmin/utils/driver/psycopg2/connection.py you could check it out.
#pg_conn.notices = deque([], self.ASYNC_NOTICE_MAXLENGTH)
You can try using pgAdmin4 wheel file, you will not face any such issues of an older version of packages from the native repo.
https://askubuntu.com/questions/831262/how-to-install-pgadmin-4-in-desktop-mode-on-ubuntu
I am on Ubuntu 16.04, but using postgresql and pgAdmin from apt.postgresql.org. I struck this bug. But the new version of psycopg2 that came through with the latest apt update solved the problem for me.

MongoDB PECL extension for CodeIgniter throw an error

I'm a very beginner with MongoDB.
I wanted to use it with my CodeIgniter 3.x framework, so I followed this tutorial :
https://github.com/bcit-ci/CodeIgniter/wiki/Using-MongoDB-in-Codeigniter
I mention that I'm using PHP7 with NGINX.
I have also installed some "php extensions" required (like: "php-pear", "php7.0-xml", so on)
Unfortunately, after having installed all that stuff, my webpage throw this error :
An Error Was Encountered
The MongoDB PECL extension has not been installed or enabled
I already gave a look to similiars questions which were posted several weeks or months ago, but I didn't manage to find a solution to my problem....
If you think that more informations are needed in purpose to help me, tell me :)

Xcart upgrade from 4.6.2 to 4.7.5

I am trying to upgrade my Xcart 4.6.2 to 4.7.5. I followed the documentioan exactly as mentioned here http://help.x-cart.com/index.php?title=X-Cart:Upgrading#Upgrading_from_version_4.7.0_or_later
However the software is updated and the db remains the same. I said because when I check http://wwww.example/VERSION it says 4.7.5 and when I check http://www.example.com/include/version.php it says X-Cart DB Version: 4.6.2 GOLD.
I did the following steps :
made a development copy of live site in server.
made a fresh installation of the xcart 4.6.2 and pointed the db to the development copy
Downloaded the 4.6.2-4.7.2 upgrade package, extracted it to the root and ran the upgrade from backend. No errors.
I checked http://wwww.example.com/VERSION it says 4.7.2 and http://www.example.com/include/version.php it says X-Cart DB Version: 4.6.2 GOLD
Do you guys faced such issue? Your advises are very much appreciated. Thanks in advance.
Most likely something goes wrong while applying the sql patch (upgrade/4.6.2-4.7.2/patch.sql) because
UPDATE xcart_config SET value = "4.7.2" WHERE name = "version";
is at the very end of it.
So, please, check the following logs for anything out of the ordinary:
var/upgrade/4.6.2-4.7.2/patch.log
var/log/x-errors_sql-.php

Creating new express project with nodeclipse gives blank project and "unexpected exception" error

Just installed latest version of Edine from nodeclipse, and in the console that is the only message outside of path information for the directory the project is stationed in. Also tried grabbing the latest default version and tried to install via New Software with similar results.
C:\Users\user\AppData\Local\Temp\express-work\1406755265579/test
Unexpected Exception
Anyone had this ever work? All methods I'm finding online seem to be broken.
This is on Windows 7 64 bit.
For anyone that arrives at this question and has the same issue.
I was under the mistaken understanding that when installing Nodeclipse, it also installed node.js, express, and mongodb. This is not the case. Installing node.js and express resolved this issue.