Skip to content

Instantly share code, notes, and snippets.

View emodric's full-sized avatar
🤘
Adventure, excitement... A Jedi craves not these things!

Edi Modrić emodric

🤘
Adventure, excitement... A Jedi craves not these things!
View GitHub Profile
@emodric
emodric / gist:3939030
Created October 23, 2012 14:23
ezp5 login error
Stack Trace
in kernel.root_dir/cache/dev/classes.php at line 564
public function destroy($id)
{
return (bool) $this->handler->destroy($id);
}
at ErrorHandler ->handle ('2', 'SessionHandler::destroy(): Parent session handler is not open', '/var/www/ezpublish5/app/cache/dev/classes.php', '564', array('id' => 'mv3f5kkl9co50f1cqquia2vf87'))
at SessionHandler ->destroy ('mv3f5kkl9co50f1cqquia2vf87')
@emodric
emodric / gist:3840819
Created October 5, 2012 16:24
rest error
eddie@abyss ~/restScripts/xml/roles [master] $ ./loadRole.sh
GET /api/ezp/v2/user/roles/5 HTTP/1.1
Accept: application/vnd.ez.api.Role+xml
Accept-Encoding: gzip, deflate, compress
Host: ezpublish5.local
User-Agent: HTTPie/0.3.0
X-Test-User: 14
@emodric
emodric / gist:3838835
Created October 5, 2012 08:59
rest-symfony - failing REST unit tests
eddie@abyss ~/ezp-next/eZ/Publish/Core/REST [rest-symfony] $ phpunit
PHPUnit 3.7.1 by Sebastian Bergmann.
Configuration read from /home/eddie/ezp-next/eZ/Publish/Core/REST/phpunit.xml.dist
............................................................... 63 / 897 ( 7%)
............................................................... 126 / 897 ( 14%)
..............FFF.............................................. 189 / 897 ( 21%)
............................................................... 252 / 897 ( 28%)
............................................................... 315 / 897 ( 35%)
@emodric
emodric / gist:3788521
Created September 26, 2012 14:56
search service tests
eddie@abyss ~/ezp-next/eZ/Publish/API/Repository/Tests [master] $ phpunit -c phpunit-legacy.xml --filter='RepositoryTest|SearchServiceTest'
PHPUnit 3.7.1 by Sebastian Bergmann.
Configuration read from
/home/eddie/ezp-next/eZ/Publish/API/Repository/Tests/phpunit-legacy.xml
..........................................................SSS 61 / 1271 ( 4%)
SSSSSSS
Time: 13 seconds, Memory: 67.75Mb
@emodric
emodric / gist:3776598
Created September 24, 2012 15:41
composer fail
Loading composer repositories with package information
Installing dev dependencies
- Installing twig/twig (dev-master b4d1d62)
Cloning b4d1d62b82e83c6fd3d5a6cd46a186de64275bb4
- Installing doctrine/common (2.3.x-dev bb0aebb)
Cloning bb0aebbf234db52df476a2b473d434745b34221c
@emodric
emodric / gist:3776357
Created September 24, 2012 14:53
ezp-next composer
eddie@abyss ~/ezp-next [master] $ php composer.phar selfupdate
You are using the latest composer version.
eddie@abyss ~/ezp-next [master] $ php composer.phar install --dev
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony-cmf/routing == 9999999-dev -> satisfiable by symfony-cmf/routing dev-master.
- symfony-cmf/routing dev-master requires symfony/routing 2.1.* -> no matching package found.
@emodric
emodric / gist:3763117
Created September 21, 2012 18:32
REST content
eddie@abyss ~/restScripts/xml/objects [master] $ ./loadContent.sh
GET /content/objects/58 HTTP/1.1
Accept: application/vnd.ez.api.Content+xml
Accept-Encoding: identity, deflate, compress, gzip
Host: localhost:8042
User-Agent: HTTPie/0.2.8-alpha
X-Test-User: 14
@emodric
emodric / TemporaryRedirect.php
Created September 21, 2012 13:46
Test of creating Gist from PhpStorm
<?php
/**
* File containing the TemporaryRedirect ValueObjectVisitor class
*
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version //autogentag//
*/
namespace eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor;
@emodric
emodric / gist:3750640
Created September 19, 2012 16:33
service.ini legacy setup diff
diff --git a/eZ/Publish/Core/settings/service.ini b/eZ/Publish/Core/settings/service.ini
index 8aad823..3074271 100644
--- a/eZ/Publish/Core/settings/service.ini
+++ b/eZ/Publish/Core/settings/service.ini
@@ -14,7 +14,7 @@
#
[parameters]
#legacy_dsn=<driver>://<username>:<password>@<host>:<port>/<database>
-legacy_dsn=sqlite://:memory:
+legacy_dsn=mysql://root@localhost:3306/ezpublish4
@emodric
emodric / gist:3737780
Created September 17, 2012 14:39
load locations for content
www-data@void ~/rest/locations [master] $ ./loadLocationsForObject.sh
GET /content/objects/58/locations HTTP/1.1
Accept: application/vnd.ez.api.LocationList+xml
Accept-Encoding: identity, deflate, compress, gzip
Host: localhost:8042
User-Agent: HTTPie/0.2.8-alpha
X-Test-User: 14