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: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: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: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: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: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: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 / config.yml
Created October 23, 2012 14:35
ezp5 configs
imports:
- { resource: parameters.yml }
- { resource: security.yml }
framework:
esi: { enabled: true }
#translator: { fallback: %locale% }
# The secret parameter is used to generate CSRF tokens
secret: %secret%
router: { resource: "%kernel.root_dir%/config/routing.yml" }
@emodric
emodric / gist:3951551
Created October 25, 2012 09:09
eZ Publish 5 & PHP 5.4.6 login issue
LogicException: Cannot change the name of an active session
in /var/www/ezpublish5/app/cache/dev/classes.php line 500
at AbstractProxy->setName('eZSESSID74e6a8b111ea7da1a7d0a596f4c35208') in /var/www/ezpublish5/app/cache/dev/classes.php line 220
at NativeSessionStorage->setName('eZSESSID74e6a8b111ea7da1a7d0a596f4c35208') in /var/www/ezpublish5/app/cache/dev/classes.php line 792
at Session->setName('eZSESSID74e6a8b111ea7da1a7d0a596f4c35208') in /home/eddie/ezp-next/eZ/Bundle/EzPublishCoreBundle/EventListener/SessionSetDynamicNameListener.php line 69
at SessionSetDynamicNameListener->onSiteAccessMatch(object(PostSiteAccessMatchEvent))
at call_user_func(array(object(SessionSetDynamicNameListener), 'onSiteAccessMatch'), object(PostSiteAccessMatchEvent)) in /var/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php line 139
at ContainerAwareTraceableEventDispatcher->doDispatch(array(array(object(SiteAccessListener), 'onSiteAccessMatch'), array(objec
@emodric
emodric / gist:4065849
Created November 13, 2012 13:49
integration tests failures
1) eZ\Publish\API\Repository\Tests\FieldType\XmlTextIntegrationTest::testCreateContentType
DOMDocument::loadXML(): Specification mandate value for attribute xm in Entity, line: 2
/home/eddie/ezp-next/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/XmlText.php:92
/home/eddie/ezp-next/eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:353
/home/eddie/ezp-next/eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:204
/home/eddie/ezp-next/eZ/Publish/Core/Persistence/Legacy/Content/Type/Mapper.php:116
/home/eddie/ezp-next/eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:228
/home/eddie/ezp-next/eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php:182
/home/eddie/ezp-next/eZ/Publish/Core/Repository/ContentTypeService.php:881
@emodric
emodric / gist:4268759
Created December 12, 2012 15:36
eZ Publish 5 REST API - loading content
eddie@abyss: ~ $ ./restScripts/xml/content/07-loadContent.sh
GET /api/ezp/v2/content/objects/58 HTTP/1.1
Accept: application/vnd.ez.api.Content+xml
Accept-Encoding: gzip, deflate, compress
Host: ezpublish5.local
User-Agent: HTTPie/0.3.0
HTTP/1.0 200 OK