Welcome Guest | Login

My site looks like an open source listing

If you navigate to the web root of my site with a browser, you get the file system, and people can actually view the source of files, including the database.yml.  This should not be happening.

What's going on?

Thanks.

2008-07-24 08:43 AM

Jeff
I see in the File Manager in the cPanel that I can change the directory permissions, so maybe that's what I need to do.

Which level would allow people to render the web site but not browse the folder structure?

Thanks.

2008-07-24 09:23 AM

Jeff
Hi Jeffb

I've added an index.html file inside your public_html directory.
Now the directory structure will not be displayed. If you want to revert back to the directory listing mode, you can just delete the index.html file.

2008-07-24 10:32 AM

Regards,
Rahul
Thanks, Rahul.  The "real" root I am trying to get working is http://westervillepoker.com/tournament_director/public/

If you navigate there, you see that I get:

Application error
Rails application failed to start properly

Thanks again.

2008-07-24 10:34 AM

Jeff
Hi

I have made the following modifications to the application

 * I've changed the permissions for dispatch.* as 755

 * Changed the shebang line for dispatch.fcgi as /usr/local/bin/ruby

 * commented out the  " AddHandler fastcgi-script .fcgi " line in .htaccess  

Now the Rails welcome page is working. I saw another query related with the rake step with the same rails application.After you perform the rake db:migrate successfully the site should load fine.

2008-07-24 11:12 AM

Regards,
Rahul
I see those updates.  Thanks.

If you notice, there's a 500 error on the home page.  What I want is for the public controller's index method in the tournament_director application to load, and I'm getting Internal Server errors.

I've done the rake, but I can't get my application to load.

2008-07-24 03:20 PM

Jeff
Hi Jeffb,

I have now added the necessary session key required by the application to the file config/environment.rb. The public controller of your application is loading fine now. Please verify it from your end.

2008-07-24 05:10 PM

The homepage renders now.  Thanks for that.  However, if you click any of the menu links on the main menu other than Reports, an error is generated.

I was able to import the data from  my local system, so that's great, but the pages are erroring for some reason.

Can you please take a look for me?

Thanks again.

2008-07-24 07:23 PM

Jeff
Hi - The following plugins were missing in your app.

auto_complete
in_place_editing
classic_pagination

I have installed them now and most of the links are working fine. But some of the links are still throwing errors as the one shown below.
--------------------
Processing LocationsController#list (for 122.166.14.197 at 2008-07-24 21:22:35) [GET]
 Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
SGFzaHsABjoKQHVzZWR7AA==--7565fef50f1786124452136e8fef34cd8bd2bcad
 Parameters: {"action"=>"list", "controller"=>"locations"}
Rendering template within layouts/standard
Rendering locations/list

ActionView::TemplateError (wrong argument type Class (expected Proc)) on line #5 of locations/list.rhtml:
2:
3: <table class="framed_table" cellpadding="0" cellspacing="0">
4:   <tr>
5:      <td class="report_header"><%= link_to('Name', sort_param('location_list_columns', :model => Location, :field => 'name'), {:class => 'report_link'}) %></td>
--------------------

Please have a look at it.

2008-07-24 08:31 PM

HostingRails Support
Thanks for getting me this far.  I use that line to produce a sortable table on the page.  The code works perfectly on my local system, but I'm using Rails 1.2.3.  Is it possible that the API has changed and could be causing this not to work?

In my controller, I do this:

def list
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'name')
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'address_1')
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'address_2')
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'address_3')
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'address_4')
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'city')
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'state')
   add_to_sortable_columns('location_list_columns', :model => Location, :field => 'zip')
   @location_pages, @locations = paginate(:locations, :per_page => 20, :order => (sortable_order('location_list_columns', Location, 'name')))
 end

Then, in the view, as you see, I do this:

  <td class="report_header"><%= link_to('Name', sort_param('location_list_columns', :model => Location, :field => 'name'), {:class => 'report_link'}) %></td>
 <td class="report_header"><%= link_to('Address 1', sort_param('location_list_columns', :model => Location, :field => 'address_1'), {:class => 'report_link'}) %></td>
 <td class="report_header"><%= link_to('Address 2', sort_param('location_list_columns', :model => Location, :field => 'address_2'), {:class => 'report_link'}) %></td>
 <td class="report_header"><%= link_to('Address 3', sort_param('location_list_columns', :model => Location, :field => 'address_3'), {:class => 'report_link'}) %></td>
 <td class="report_header"><%= link_to('Address 4', sort_param('location_list_columns', :model => Location, :field => 'address_4'), {:class => 'report_link'}) %></td>
 <td class="report_header"><%= link_to('City', sort_param('location_list_columns', :model => Location, :field => 'city'), {:class => 'report_link'}) %></td>
 <td class="report_header"><%= link_to('State', sort_param('location_list_columns', :model => Location, :field => 'state'), {:class => 'report_link'}) %></td>
 <td class="report_header"><%= link_to('Zip', sort_param('location_list_columns', :model => Location, :field => 'zip'), {:class => 'report_link'}) %></td>

2008-07-24 08:50 PM

Jeff
Hi - The issue seems to be fixed now. I've changed  the RAILS_GEM_VERSION in your environment.rb to 1.2.3. Also I've commented the session part in the environment.rb.

2008-07-24 10:34 PM

HostingRails Support
Thank you so much.  The site seems to be working just fine now.  I really appreciate all the help you've given me.

2008-07-24 10:53 PM

Jeff
I still get intermittent application errors on some pages.  Here's one:

http://westervillepoker.com/buyins/new?tournament_id=9

2008-07-25 10:28 AM

Jeff
Hi- The issue seems to be fixed now,please verify from your end. Previously we were getting the following error.

--------------------
ActionView::TemplateError (uninitialized constant Mime::CSS) on line #5 of app/views/buyins/_form.rhtml:
2:
3: <!--[form:buyin]-->
4: <p><label for="player_first_name">First Name</label><br/>
5:      <%= text_field_with_auto_complete :player, :first_name %>
6: </p>
7:
8: <p><label for="player_last_name">Last Name</label><br/>
--------------------
I have made the following changes in your app/views/buyins/_form.rhtml.
=====================
Line #5
<%= text_field_with_auto_complete :player, :first_name %> =>
<%= text_field_with_auto_complete :player, :first_name,{}, :skip_style => true %>

Line #9

<%= text_field_with_auto_complete :player, :last_name %> =>
<%= text_field_with_auto_complete :player, :last_name,{}, :skip_style => true %>
=====================

2008-07-25 12:52 PM

Thanks for your help.  That page does work now, but I'm seeing issues on these pages too.  Sometimes they work, sometimes they don't.  On occasion, if I hit refresh several times, the pages suddenly start working, but sometimes that doesn't even help.

Is the issue you found above common to these pages too?
http://westervillepoker.com/tournaments/listhttp://westervillepoker.com/knockouts/list_tournamentshttp://westervillepoker.com/locations/listhttp://westervillepoker.com/players/listhttp://westervillepoker.com/blind_schedules/listhttp://westervillepoker.com/reports/show_player_summary_report

2008-07-25 01:28 PM

Jeff
Hi Jeffb,

Please avoid from posting account specific contents on forums. The issue seems to be fixed now. Could you please verify it from your end. I have now started your rails application on Mod rails and now all the links are loading fine here.

2008-07-25 09:04 PM

Sorry about the account-specific information.  I've found one other page so far that is having issues:
http://domain-name/buyins/list?page=2

Also, I've got some autocomplete functionality on this page:
http://domain-name/buyins/new?tournament_id=9

The styles don't seem to be working properly.  The autocomplete works, but there should be some formatting to go along with it.

Thanks.

2008-07-29 10:51 AM

Jeff
you were getting error on the link http://domain-name/buyins/list?page=2, because there is no tournament with id 2 in your database. Please have a look at it.

the link http://domain-name/buyins/new?tournament_id=9 loads fine for me. I can't find any formatting issue there.

2008-07-29 04:25 PM

HostingRails Support
Yeah, I need to pass the tournament ID on the list page.  For the formatting issue, go to that URL I gave, and type "Je" in the first name field.  What should happen is that the autocomplete will pop up a div with suggested matches, and that's where the formatting issue is occurring.  The same happens on the last name field as well.

2008-08-04 01:44 PM

Jeff
Hi Jeffb,

I have typed "Je" in the first name field and I am able to successfully insert the name in the field. But the only thing I have noticed is the autocomplete pop up is mixing with the Field name "Last Name". Also the page seems to be blank (no css or java scripts) while accessing the URL. Please make sure that you have given proper permission of 755 to all the style sheets and java scripts file.

2008-08-05 08:14 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.