This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Discussions » $.ez is not a function
expandshrink

$.ez is not a function

$.ez is not a function

Thursday 17 November 2011 12:14:48 pm - 7 replies

Hello

I got an following error while finding an image object from adding an article

Error: $.ez is not a function

Source File: http://www18oct.oscar-tool.com/de...javascript/ezajaxrelations_jquery.js

Line: 25

Please help.

Jitesh

Modified on Thursday 17 November 2011 12:17:23 pm by Jitesh Rana

Thursday 17 November 2011 12:31:17 pm

Hi Jitesh,

try putting the following lines in design.ini.append.php file in your administration siteaccess.

[JavaScriptSettings]
BackendJavaScriptList[]=ezjsc::jquery
BackendJavaScriptList[]=ezjsc::jqueryio

Thursday 17 November 2011 1:00:36 pm

Hi Edi,

Thanks for your quick response,

It resolved the problem, but "Find Object" button could not find any object. Is there any internal issue?

It just desplay below message

No results were found when searching for "a"

Thanks,

Jitesh.

Thursday 17 November 2011 1:13:15 pm

You will have to debug that by yourself unfortunatelly, because there can be many causes: do you use Solr (eZ Find), or old eZ search, is your Solr running, are objects indexed correctly and so on and so on.

Thursday 17 November 2011 1:48:35 pm

You will have to debug that by yourself unfortunatelly, because there can be many causes: do you use Solr (eZ Find), or old eZ search, is your Solr running, are objects indexed correctly and so on and so on.

Hi Edi,

I am using eZ Find and eZ flow extension.

How to check objects are indexed correctly?

Thanks once again,

Jitesh

Thursday 17 November 2011 2:22:42 pm

Can they be searched for on frontend or through content/search in admin interface? If yes, they are indexed correctly.

Since AJAX search doesn't work for you, it might be wise to check if there are any errors in AJAX requests/responses.

Modified on Thursday 17 November 2011 2:23:15 pm by Edi Modrić

Thursday 17 November 2011 2:56:53 pm

Can they be searched for on frontend or through content/search in admin interface? If yes, they are indexed correctly.

Since AJAX search doesn't work for you, it might be wise to check if there are any errors in AJAX requests/responses.

Hi Edi,

I checked content/search in admin interface, and found that it doesn't work

is there any way to index objects correctly?

how to resolve it?

Thanks,

Jitesh

Friday 18 November 2011 4:39:06 am

Hello Jitesh,

First I think you should review your ezfind.ini specific settings override settings values to ensure you have the desired configuration properly in place before you possibly waste time trying but failing and not knowing till much later to index content with eZ Find. [1]

 

I think the command line script command your looking for here is the following. [0]

cd /path/to/ezpublish; php ./extension/ezfind/bin/php/updatesearchindexsolr.php -s ezwebin_site_user --clean-all

Remember the parameters at the end, '--clean-all' as this is required to ensure you result in a fresh, clean, index at the end of execution (for the first time, after usually not required again).  

You may also enjoy seeing all available options the above command line script provides with this command.

cd /path/to/ezpublish; php ./extension/ezfind/bin/php/updatesearchindexsolr.php --help

 

This process may (depending on db size and other factors specific to your use case and) take quite a while to finish, so be prepared for this in advance (consider the following personal recommendation)...

 

All of the above factors and more are why I regularly use GNU Screen and strongly recommend it's use to others to ensure that your long running scripts complete regardless of if you loose your connection to the server (connection problems, client timeouts, etc). Basically you install the screen command/package first, then run the command 'screen', then within screen run the above commands. [3][4][5]

 

Then take a break for a while, while the index is rebuilt from scratch properly. I suggest enjoying a nice refreshing glass of orange juice (a personal favorite) and looking out into the sky outside.   

Later after the script has completed successfully, perform various searches from the admin to validate the the index is populated and eZ can talk to it happy.gif Emoticon

 

It's also been my experience that you can re-do this over and over again at any time (you have the time to index of course) also after your index is build with the above commands for the first time you can run a cronjob to update the index without rebuilding it. [2]

 

Cheers,

Heath

 

[0] http://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Find/eZ-Find-2.6/Basic-Configuration/Updating-the-search-index

[1] http://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Find/eZ-Find-2.6/Basic-Configuration/Configuration-settings-eZ-Find

[2] http://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Find/eZ-Find-2.6/Basic-Configuration/Indexing-content

[3] http://packages.ubuntu.com/lucid/screen

[4] http://magazine.redhat.com/2007/09/27/a-guide-to-gnu-screen/

[5] http://en.wikipedia.org/wiki/GNU_Screen

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from