Author
|
Message
|
André R.
|
Thursday 29 October 2009 11:45:22 am
And John: Since the rating is saved, there is probably a javascript error happening when rating call returns data, so any javascript error would help here (if it is triggered). Use firefox + firebug to get most meaningful errors (IE is no good at this among other things..). And are you using default yui3 code or did you change to jquery code (in ezjscore.ini preferedLibrary setting)?
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|
John Smith
|
Friday 30 October 2009 1:35:18 am
@Pascal: Much appreciated. Cheers. Please let me know the outcome. @Andre: I have not changed anything, just default setting with yui3. I exactly followed what pascal suggested in his article but on 4.0.1
|
John Smith
|
Friday 30 October 2009 7:35:02 am
Tried again with a fresh install 4.0.1 (Plain_site). Nothing on site except one folder and article. The header html is something like below, and I can see all the necessary files are loading as mentioned by pascal. STILL SAME PROBLEM, the page is not refreshing after I click on the Stars. PASCAL: I am waiting for your outcome.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
<head>
<style type="text/css">
@import url("/design/base/stylesheets/core.css");
@import url("/design/base/stylesheets/site.css");
@import url("/stylesheets/t02/site-colors.css");
@import url("/design/base/stylesheets/classes.css");
@import url("/stylesheets/t02/classes-colors.css");
@import url("/design/standard/stylesheets/debug.css");
@import url("/extension/ezstarrating/design/standard/stylesheets/star_rating.css");
</style>
<script language="JavaScript" type="text/javascript" src="/design/standard/javascript/tools/ezjsselection.js"></script>
<script language="JavaScript" type="text/javascript" src="/design/plain_site/javascript/yahoo-dom-event.js"></script>
<!--[if lt IE 6.0]>
<style>
div#maincontent-design { width: 100%; } /* This is needed to avoid width bug in IE 5.5 */
</style>
<![endif]-->
<title>Test / News / eZ Publish - Plain site</title>
<meta name="Content-Type" content="text/html; charset=utf-8" />
<meta name="Content-language" content="en-GB" />
<meta name="author" content="eZ Systems" />
<meta name="copyright" content="eZ Systems" />
<meta name="description" content="Content Management System" />
<meta name="keywords" content="cms, publish, e-commerce, content management, development framework" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta name="generator" content="eZ Publish" />
<link rel="Shortcut icon" href="/design/standard/images/favicon.ico" type="image/x-icon" /><link rel="Alternate" href="/ps/layout/set/print/news/test" media="print" title="Printable version" />
<script language="javascript" type="text/javascript" src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="/var/plain_site/cache/public/javascript/200b02b41a6af8b8fe00c09c07d65eb6.js" charset="utf-8"></script>
</head>
<body>
|
Pascal France
|
Friday 30 October 2009 8:28:34 am
Hi John,
Well, I just installed a new 4.01 with type Plain (without ezwebin and ezflow).
Then I followed my Doc line by line and the verdict is........ all works perfectly !
Here is the article: http://linuxorable.fr/ez401plainsite/index.php/test/My-New-article-with-Star-Rating Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|
John Smith
|
Friday 30 October 2009 9:21:08 am
It is shame that it is not working on my end. Have you done any changes in the "mod_rewrite" rules or nothing at all just followed your article. Mine is below:
RewriteEngine On
RewriteRule content/treemenu/? /index_treemenu.php [L]
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/(texttoimage|public)/.* - [L]
RewriteRule ^/var/([^/]+/)?cache/public/.* - [L]
RewriteRule ezjscore/call/ /index_ajax.php [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^/share/icons/.* - [L]
Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]
Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/robots\.txt - [L]
RewriteRule ^/phpinfo\.php - [L]
If possible please pass on your rewrite rules....
|
Pascal France
|
Friday 30 October 2009 9:52:50 am
Here is my .htaccess for http://annuecobio.fr which is a remote hoste:
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^var/storage/.* - [L]
RewriteRule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
RewriteRule ^design/[^/]+/(stylesheets|images|imagespl|javascript)/.* - [L]
RewriteRule ^share/icons/.* - [L]
RewriteRule ^sitemaps/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
RewriteRule ^extension/tracewatch/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule !(\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$ index.php
For the test that I done with eZP 4.0.1, I didn't used any .htaccess because it's my local machine. Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|
André R.
|
Friday 30 October 2009 2:08:18 pm
RewriteRule ezjscore/call/ /index_ajax.php [L]
I guess you also copied index_ajax.php to eZ Publish root, as the ratings are saved. No other idea then trying to debug the javascript end of it.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom
|
Pascal France
|
Saturday 31 October 2009 2:56:23 am
Hi André, It's strange because I don't use your rewrite rule and there is no index_ajax.php on the root of the 4.0.1 test site I installed and all works fine. Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|
John Smith
|
Saturday 31 October 2009 3:38:42 am
Hi guys, Yeah it works with or withou index_ajax.php. In my case it was the right environment. I was using php5.1.2 with no JSON extension. This morning tried on new server with PHP 5.2.x / JSON extension / version 4.01 / plain_site. It all works in first attempt. Would like to thank you guys for your time and effort. Cheers,
|