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:87a166a3cfb0be42e1f6
Created June 10, 2014 08:39
TagsBundle tests failure
eddie@abyss: ~/repos/netgen/TagsBundle [fixpgsqlinvalidcolumn] $ phpunit -c phpunit.xml
PHPUnit 4.1.0 by Sebastian Bergmann.
Configuration read from /home/eddie/repos/netgen/TagsBundle/phpunit.xml
............................................................... 63 / 222 ( 28%)
.........................................................I..... 126 / 222 ( 56%)
............................................................I.. 189 / 222 ( 85%)
...........................F.....
eddie@abyss: ~ $ git clone git@github.com:netgen/TagsBundle.git
Cloning into 'TagsBundle'...
remote: Reusing existing pack: 1916, done.
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 1924 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1924/1924), 335.23 KiB | 178.00 KiB/s, done.
Resolving deltas: 100% (625/625), done.
Checking connectivity... done.
eddie@abyss: ~ $ cd TagsBundle/
eddie@abyss: ~/repos/netgen/TagsBundle/vendor/ezsystems/ezpublish-kernel [master] $ grep -irn "criterions" *
eZ/Publish/SPI/Persistence/Content/Search/Handler.php:42: * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException if there is more than than one result matching the criterions
eZ/Publish/API/Repository/SearchService.php:45: * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException if there is more than than one result matching the criterions
eZ/Publish/API/Repository/Values/Content/Search/SearchResult.php:35: * criterions the wrong spelled value is replaced by a corrected one (TBD).
eZ/Publish/API/Repository/Values/Content/Query/Criterion.php:43: * Additional value data, required by some criterions, MapLocationDistance for instance
eZ/Publish/API/Repository/Values/Content/Query/Criterion/Location.php:18: * This is the base class for Location criterions
eZ/Publish/Core/Repository/SearchService.php:147: * Checks that $criteria does not contain Location
<?php
/**
* @author Branko Ajzele <ajzele@gmail.com, http://foggyline.net>
*/
$XMLRequestType = 'RacunZahtjev'; /* RacunZahtjev OR PoslovniProstorZahtjev */
txtund=$(tput sgr 0 1) # Underline
txtbld=$(tput bold) # Bold
reset='\[\e[00m\]'
bold='\[\e[01m\]'
red='\[\e[31m\]'
green='\[\e[32m\]'
orange='\[\e[33m\]'
blue='\[\e[34m\]'
purple='\[\e[35m\]'
@emodric
emodric / gist:5508478
Created May 3, 2013 10:51
Updating eztags field and publishing content over eZ Publish 5 REST API
eddie@abyss: ~/restScripts/xml/content [master] $ ./05-updateVersion.sh
POST /api/ezp/v2/content/objects/62/versions/2 HTTP/1.1
Accept: application/vnd.ez.api.Version+xml
Accept-Encoding: gzip, deflate, compress
Content-Length: 1192
Content-Type: application/vnd.ez.api.VersionUpdate+xml
Host: ezpublish5.local
User-Agent: HTTPie/0.4.1
X-HTTP-Method-Override: PATCH
@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
@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: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 / 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" }