Quantcast
Channel: share.ez.no > Forum topics only
Viewing all 2728 articles
Browse latest View live

Fresh install from git repo does not work!

$
0
0

Hi!

I have been bumping my head in a wall of "not so easy understandable documentation" for the last two days. By following INSTALL.md from git repo I can't install it. This is my n-th iteration of install. Frustrating is what I feel right now toward ez! Not to mention that I have been reading all documentation, digging into kernel, api...

My server is with latest PHP 5.3.21-1~dotdeb.0, Apache and Percona Mysql.

By entering: php ezpublish/console assets:install --symlink web response is 

[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]  The service "templating" has a dependency on a non-existent service "templating.engine.eztpl".

 

Step 2.

Upgrade of existing 2012.08 to 2012.12 I get this:

FatalErrorException: Error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /var/www/public_html/vendor/ezsystems/ezpublish/eZ/Publish/Core/MVC/Symfony/Security/User/Provider.php line 81

?!?!?!

My dev.log:

[2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "eZ\Publish\Core\MVC\Symfony\EventListener\SiteAccessMatchListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestSetup". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterProxyListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] [][2013-02-10 12:12:26] app.INFO: Router eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter was not able to match, message "" [] [][2013-02-10 12:12:26] app.INFO: Router eZ\Bundle\EzPublishCoreBundle\Routing\UrlAliasRouter was not able to match, message "Config says to bypass UrlAliasRouter" [] [][2013-02-10 12:12:26] request.INFO: Matched route "ez_legacy" (parameters: "_route": "ez_legacy", "_controller": "ezpublish_legacy.controller:indexAction") [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestForward". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] [][2013-02-10 12:12:26] app.DEBUG: Checking secure context token:  [] [][2013-02-10 12:12:26] app.DEBUG: Trying to pre-authenticate user "-1" [] []

I am definitely missing something but what and where? 

Best regards,
Sinisa 


Connect controller cache with several locations IDs

$
0
0

Hello,

I try to configure a sub request for a menu so that when a node listed in the menu is modified the cache is purged. 

I succeeded to connect my controller with ONE location by using :

 $response->headers->set('X-Location-Id',123);

When I modifiy the content 123 it expires the menu cache. 

But I can't get an expiration for every location in the menu. 

I tried X-Group-Location-Id but it doesn't work. 

How do you achieve this ? 

 

Thanks

Install from git repo with upgrade does not work!

$
0
0

Hi!

I have been bumping my head in a wall of "not so easy understandable documentation" for the last two days. By following INSTALL.md from git repo I can't install it. This is my n-th iteration of install. Frustrating is what I feel right now toward ez! Not to mention that I have been reading all documentation, digging into kernel, api...

My server is with latest PHP 5.3.21-1~dotdeb.0, Apache and Percona Mysql.

By entering: php ezpublish/console assets:install --symlink web response is 

[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]  The service "templating" has a dependency on a non-existent service "templating.engine.eztpl".

 

Step 2.

Upgrade of existing 2012.08 to 2012.12 I get this:

FatalErrorException: Error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /var/www/public_html/vendor/ezsystems/ezpublish/eZ/Publish/Core/MVC/Symfony/Security/User/Provider.php line 81

?!?!?!

My dev.log:

[2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "eZ\Publish\Core\MVC\Symfony\EventListener\SiteAccessMatchListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestSetup". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterProxyListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] [][2013-02-10 12:12:26] app.INFO: Router eZ\Bundle\EzPublishCoreBundle\Routing\DefaultRouter was not able to match, message "" [] [][2013-02-10 12:12:26] app.INFO: Router eZ\Bundle\EzPublishCoreBundle\Routing\UrlAliasRouter was not able to match, message "Config says to bypass UrlAliasRouter" [] [][2013-02-10 12:12:26] request.INFO: Matched route "ez_legacy" (parameters: "_route": "ez_legacy", "_controller": "ezpublish_legacy.controller:indexAction") [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestForward". [] [][2013-02-10 12:12:26] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] [][2013-02-10 12:12:26] app.DEBUG: Checking secure context token:  [] [][2013-02-10 12:12:26] app.DEBUG: Trying to pre-authenticate user "-1" [] []

I am definitely missing something but what and where? 

Best regards,
Sinisa 

How to get location children count in a twig template?

$
0
0

Hello. Maybe because i still has the habits of tpl files, i'm wondering if is there any way to get the children count for a location from a twig template. 

It's it possible right now? if not, Would be a Twig Extension the right way to do it?

Cheers.

Best way to handle controller stuff combined with the ViewController

$
0
0

Hello,

What is the recommended way to handle "business logic stuff" that are usually in a controller when we us the ViewController from an urlalias. 

In this way we usually have only access to the template ... 

Do you advise to use the PreContentViewListener and add all business logic code with conditions depending on the content type for example or do you advise to use sub requests ? 

Thanks !

Missing pagination when adding images in RTE (ez 4.5)

$
0
0

When I try to browse for images in RTE (using eZ 4.5) there is no pagination which makes it diffcult to add images without searching.

Does anyone know if there is a patch or something for this issue?

Image gone after approve

$
0
0

Hi,
i have this problem:

eZ Version: eZ Publish version: Community Project 2011.11 (Community Project 2011.11)

This is the workflow:

1. User submit an object that have an image attribute.
2. The image is saved on server (there is the hashed file on original folder).
3. I approve object.
4. Cronjob publish object
5. Object is visible on frontend but image is gone
6. In the object folder there isn't any image
7. If i manually add image the object is correctly showed.

Any idea?

ezoe custom tags styling via multiple classes

$
0
0

I have added attributes to the Factbox custom tag that are used to add classes to the view template. For example: type (example, explanation, risk, highlight, pull-quote), align (left, center, right), width (narrow, wide, very-wide), etc.).  Using these classes I can style the different combinations appropriately.  This works find in the view view, but in ezoe, since the classes aren't there, it is impossible to make the factbox look the same as it will when it's published.  This makes it not very WYSIWYG and very difficult for the content creator.

To fix this, I created a slightly modified input handler (ezoexmlinput.php) that adds the custom attributes as classes to the custom tag div. So for example the markup becomes:

Lorem ipsum...

This way I am able to add the same styles as in the view view and the editor sees the box as it will be when published.  

Unfortunately, there are two problems:

1) When initially creating the custom tag, ezoe (or tinymce) creates the markup and I haven't been able to figure out where in the javascript I can add a patch to insert the attribute values as classes.  I could solve this with a separate js script to parse the custom tag attributes out of the customattributes attribute on the div and add them to the class attribute, but I still have problem 2.

 

2) When I publish the object any ezoe attributes with extra classes get removed altogether.  

 

I'd be grateful if anyone has some ideas to point me in the right direction.

 

UPDATE

I solved the styling problem in a less obtrusive way by just using css3 substring selectors on the customattributes attribute. For example:

.factbox[customattributes*="factbox-example"] {  background-color: #1f768a;}

.factbox[customattributes*="factbox-instructions"] {  background-color: #dfdad4;  color: #333333;}

.factbox[customattributes*="factbox-highlight"] {  background-color: #f6d307;  color: #333333;}

This approach works pretty well, but it does have a few drawbacks:

  1. You can't directly re-use the css from the view view
  2. Older browsers don't support the attribute substring selector
  3. Substring selectors are slower than class selectors

I'd still be curious to know why the extra classes were causing the custom elements to be stripped out on publishing. More specifically, where in the code this is happening and how it could be changed.


Migration 3.9 to 3.10

$
0
0

hi, I have to migrate to a client. it is to move from version 3.9 to version 4.4. I must therefore migrate step by step (http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-3.10/from-3.9.x-to-3.10.y) and so I have to start I get version 3.10 thing I can not find after several hours searching on the web.

Someone would he do that file?

$# syntax

$
0
0

Hi,

I have seen this kind of syntax in some templates: {$#node...}, so I wonder what is the purpose of the "#" after the "$"?

Thanks,

 

Nicolas

eZMultUpload with PLUpload interface.

$
0
0

Hi all,

I have recently updated the EZMuliUpload extension to use PLUpload and I thought that others in the community might find it useful as well.

I've done this as my boss kept making requests for drag and drop functionality on uploads.

I also wanted to be able to cater the multi-upload on more than just flash. PLUpload has a series of different runtimes that should allow for any non flash environment. I have defaulted this to HTML5 and it will fall back through flash, gears, silverlight and browserplus.

I have only so far tested it with legacy EZP using the legacy stack from 2012.12 and installs I've been using of 2012.6 in HTML5

I haven't had a chance yet to test it on a mobile device, but it worked in my FF, Chrome and Safari so at present it meets my needs. I will be doing further testing once i get some more time.

I have yet to fully sink my teeth into EZP5 so I haven't been able to test it there. As I get better with EZP5 I will most likely update this even more.

Things I have done to the extension thus far:

  1. Modified the template files to use the plupload interface.
  2. Added some settings to ezmultiupload.ini so that certain features for PLUpload can be set there.
  3. Created a new module view (ezmultiupload/plupload) that PLUpload interacts with to upload the files.
  4. Created a default node view file to handle if there is no override for the content class. This way the user still sees and output (even if it isn't as nice as it could be)
  5. Created a template operator (ezmulit()) that grabs a form token to allow for use with eZFormToken

I have forked the ezmultiupload extension on github as of yesterday so it should be fairly up to date.

If you wish to have a look check it out at https://github.com/DeClemo/ezmultiupload

Hope you find it useful :-D

Edit: Oh also I forgot, here's the link to the PLUpload site as well http://www.plupload.com/index.php

composer.phar update fails

$
0
0

Hi,

i'm trying a 
php composer.phar update ezsystems/ezpublish

and get following error:
  [Composer\Downloader\TransportException]                                                                       The "https://api.github.com/repos/ezsystems/ezp-next" file could not be downloaded (HTTP/1.1 404 Not Found)  

Any hints?
Greets Stefan 

Get Content_search_attribute_fulltext_value[] value after advanced Search

$
0
0

Hi,

I have fields in my advanced search of this type :

My search is ok and the result too. But my filter was rester every time. I search a way to my select get the value of the search to autocomplete with the last search, but i don"t understand.

I try {ezhttp( "Content_search_attribute_fulltext_value[]" )} but is empty

Thanks in advance

which site package should i load

What's Needed in an eZ 5 Tutorial?

$
0
0

Hi all, 

I'm currently working on a series of tutorial articles for working with eZ Publish 5, focused mostly at developers already familiar with eZ 4.x. I'm building out a simple site using only Twig/Symfony concepts wherever possible, and walking users through the steps. 

So, if you're just learning eZ Publish 5, which parts are confusing you the most, and what do you have questions on? If you're familiar with it, what are the questions you get the most?


Public API Cookbook

$
0
0

I tried to run the examples from https://confluence.ez.no/display/EZP/1.+Getting+started

In routing.yml

I added the following details just for a test

ez_systems_cookbook_travel: pattern: /travel/{name} defaults: { _controller: EzSystemsCookbookBundle:Travel:index }

I have added a travel controller with indexAction function which accepts $name as a parameterWhen I try to run the website locally http://mypersonal.url/travel/testnameI get the following error:

Module not found

The requested module travel could not be found.

Possible reasons for this are: The module name was misspelled, try changing the URL.

The module does not exist on this site. This site uses siteaccess matching in the URL and you did not supply one, try inserting a siteaccess name before the module in the URL.

Normally problem like this in older version of EZPublish was related to anonymous user permission which does not looks to be the case in EZPublish5I as well did the clear cache from backend interface without any helpThanks in advance for any help.

php exception after cache clear

$
0
0

Hi,

after running "php ezpublish/console cache:clear --env=dev" i become this error.

CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Unsupported value (NULL)") in "{% extends "eZDemoBundle::pagelayout.html.twig" %} {% block content %} {{ viewResult|raw }} {% endblock %}"." at /My/Document/Root/ezpublish-community/ezpublish/cache/dev/classes.php line 6017

I have no idea how to fix it.

Thanks for any help

Stefan

Problem while installing EzPublish locally

$
0
0

Hi everyone! 

I am new with this and not familiar at all :) So, i hope you will understand me, and help me :)

I have been trying to install ezPublish locally(I have WAMP 2.2 installed) but unsuccessfully ! 

I followed the steps that I could find on this website.

During the installation, I have a page Database initialization, and I after i type all necessary data and click next, after one minute approximately, error page shows up. 

Error log says: 

>> Maximum execution time of 30 seconds exceeded in C:\programfiles\wamp\www\ezpublish5_community_project-2012.12-gpl-full\ezpublish_legacy\lib\ezutils\classes\ezdebug.php on line 1883

>>The web server did not finish its request 

 Debug information can be found in the log files normally placed in var/log/* or by enabling 'DebugOutput' in site.ini

Can you help me in some way? Maybe with some advice. 

Thank you!!!

Change site language in database

$
0
0

I am working on a website for UK and we have made the mistake to create the content classes and content objects in eng-US, as it was also an English language and didn't really pay much attention on this aspect. It seems like we will have to change the whole site to eng-UK as the client was not that happy about it and put the magic question: "And what do you think I will do if I want to later get a version for US with slightly different content? It would be too confusing for my editors."
Can anybody tell me a good solution for how can I automatically change the language of all content objects to eng-UK?
I have tried to change the language masks and other language refernces in tables ezcontentobject, ezcontentobject_attribute, ezcontentobject_name  from DB, but then my root became invisible and the whole Content structure tag disapeared. On setup / language seemed that every object is translated.
Thanks a lot in advance for any help.
Anna

ezsearch: search through various attributes

$
0
0

Hello,

I have various attribute types in my content class (integers, date/time, text lines...) and I need to make some custom advanced search, and I have to use ezsearch because I can not install Solr on server.

I'm using ezPublish 4.7

For example to search all contents that have

  • answer date between 03/03/2012 and 03/04/2013
  • meta title: airplane tickets
  • City: Nis

How can I do this? I am even reading code but with no success :(

Thank you

Viewing all 2728 articles
Browse latest View live