ProsePoint Express: hosted newspaper website content management software

Getting error message "An error occurred at /views/ajax"

8 replies [Last post]
simpleuser
User offline. Last seen 2 years 32 weeks ago. Offline
Joined: 21/06/2009
Posts:

hello everyone,

I recently created a news site using ProsePoint 0.22. I have configured all channels set to "Use a reverse chronological story listing for this channel." I am facing problem in it as i have submitted few stories on channels, it started showing pagination links "1 of 2  >>"  but when i click on either of hyperlink i.e. 2 or >> i am getting a  message in popup - "An error occured at /view/ajax".

Can anyone please help in removing this error as it is showing up on all the channels where pagination is showing up.

Also please provide information to limit number of posts on a channel page to 10 instead of current 20 posts per page i am getting thorugh default configuration as i am unable to find settings for it.

Thanks

beng
User offline. Last seen 6 days 16 hours ago. Offline
Joined: 27/02/2009
Posts:
...

Hi,

Firstly, how to configure change the items per page:

Story listings of channels are implemented via the Views module.

Visit .../admin/build/modules and enable the module Views UI.

Then, visit .../admin/build/views and edit the view story_view.

Then, in the display Defaults, under Basic settings, click on Items per page and change that to 10 (or whatever number you want).

Click on Update, and then Save.

But, if you do this, please be very careful. If you make a mistake, you may break your ProsePoint site. It's a good idea to have a backup as well, just in case.

Now, as for your error "An error occured at /view/ajax" ... I've tested this on a test site, and I can't reproduce it. Can you give me more information to help me narrow it down?

Is that the full error message?

Do you have javascript enabled on your browser? What browser are you using?

Do you have any other non-ProsePoint modules enabled on your site?

simpleuser
User offline. Last seen 2 years 32 weeks ago. Offline
Joined: 21/06/2009
Posts:
Thanks Beng for your help.

Thanks Beng for your help. Since you are not able to recreate bug I am not making any changes in the site for now so that you can check it at your end.  http://www.punjabdigitalnews.com/ is link for the site for which i am using ProsePoint 0.22. To help you in finding issue, I can only say that i have not made any changes or customization at my end yet. I just installed script with demo site content and renamed few existing channels as per site's requirement and re arranged them. Nothing else, just changed banner images and few text changes. I have not used any Drupal plugins as well. Please let me know if any other input is required from me regarding setup.

You can see error on home page and under channel Haryana. I have checked it on IE 6, 7 and 8, Chrome and Firefox 2.x and 3.x both on Win XP and Vista. I am getting error message in popup "An error occurred at /views/ajax" 

Please check on site and if any other info is required from my end, please let me know.

Thanks for you help and time. 

beng
User offline. Last seen 6 days 16 hours ago. Offline
Joined: 27/02/2009
Posts:
...

Strange. I can see the error on your site.

Looking in deeper, when I click on the pager, that causes an ajax call to :

http://www.punjabdigitalnews.com/views/ajax?view_name=story_view&view_di...

but the request returns a 404 Page not found. That is then causing the popup with the error message to appear. If I visit that address directly with my browser, I also get a 404 Page not found.

However, if I try the same thing on the ProsePoint demo site

http://demo.prosepoint.org/views/ajax?view_name=story_view&view_display_...

I get the correct output.

So, for some reason, some of the urls on your site are not working.

Some questions:

Did you encounter any error or warning messages during installation of this site?

Can you try clearing your site cache and see if that helps? (See Clearing the cache to help with common ProsePoint issues)

Can you check your PHP logs to see if there are any suspicious error messages in there?

simpleuser
User offline. Last seen 2 years 32 weeks ago. Offline
Joined: 21/06/2009
Posts:
thanks beng for your time. I

thanks beng for your time. I only get warning during installation of demo site content nothing else. It showed blank screen while installing demo content but when i refreshed the page it showed all default messages that prosepoint shows after successful installation of demo site content along with link and other notifications.

Regarding Cache thing... I had not done any settings regarding that yet and was on deafult settings only. After your advice I have cread cache that was by default but it still shows error. 

I will check PHP logs and will update you accordingly. In mean time if you find any solution then please update me. Thanks for your efforts and time.

simpleuser
User offline. Last seen 2 years 32 weeks ago. Offline
Joined: 21/06/2009
Posts:
Hi Beng I check

Hi Beng

I check report->recent log entries and top page not found errors. Please check this

Countsort Message

359  profiles/prosepoint/themes/tma/tma/foo.gif

39  406.shtml

=======================

First warning message that is logged is and there are lots of them

Type page not found

Date Wednesday, June 17th, 2009 - 05:51

User admin

Location  http://punjabdigitalnews.com/profiles/prosepoint/themes/tma/tma/foo.gif

Referrer  http://punjabdigitalnews.com/sites/default/files/css/e0b86092e5fd47875a7...

Message profiles/prosepoint/themes/tma/tma/foo.gif

Severity warning

===============================

For 406 warning  it is having log

Type page not found

Date Tuesday, June 23rd, 2009 - 12:40

User Visitor

Location http://www.punjabdigitalnews.com/views/ajax?view_name=story_view&view_di...

Referrer http://www.punjabdigitalnews.com/

Message 406.shtml

Severity warning

==================================

I checked error log file on webserver and it has only one error message that is regarding missing favicon file. No other error is logged into that.

Please advise me how to proceed further. Incase you require access to admin section, please let me know so that you can check for the issue.

Thanks for your time and help. Looking forward for solution of this issue.

beng
User offline. Last seen 6 days 16 hours ago. Offline
Joined: 27/02/2009
Posts:
mod_security?

Interesting, I found these two posts from drupal.org (which also apply to ProsePoint):

http://drupal.org/node/110219

http://drupal.org/node/353830

Is your web host running an apache module called mod_security? If so, you probably want to ask them to turn it off.

simpleuser
User offline. Last seen 2 years 32 weeks ago. Offline
Joined: 21/06/2009
Posts:
I tried to turn it off using
I tried to turn it off using .htaccess but it was not allowed. I have sent the request to server admin. Mean time i upadted the views settings as per your instructions (in previous post) to 40 from current 20 posts per page. But still i am getting only 20 posts per page. I even cleared cache but it didnt help me either. Can you tell what might be going wrong here so that till the time the error issue is not solved, i can show posts in single page only. Thanks
beng
User offline. Last seen 6 days 16 hours ago. Offline
Joined: 27/02/2009
Posts:
You may find your web host

You may find your web host won't turn off mod_security. That's a disadvantage of shared hosting - you don't have much control over the server, and sometimes you may have to change provider to find a setup that works for you.

The Items per page value for a view is the one to change. Please double check what you've done. You may need to check the Items per page value for both the 'Defaults' display, and for the 'Page: Story listing by channel' display.