refinery / refinerycms-portfolio

A really straightforward open source Refinery CMS portfolio plugin written in Ruby on Rails
www.refinerycms.com
131 stars 100 forks source link

Page not found in portfolio tab #12

Closed mushfique closed 14 years ago

mushfique commented 14 years ago

After installing portfolio, when I click at the portfolio tab, it shows the page not found page! Anything missing there?

parndt commented 14 years ago

You mean in the Refinery backend or the website frontend?

Also which version of Refinery?

mushfique commented 14 years ago

The installation process was followed as instructed: $ script/plugin install git://github.com/resolve/refinerycms-portfolio.git

$ rake refinery:portfolio:install

$ rake db:migrate

$ rake images:regenerate

The output of 'rake images:regenerate' command is: [Preparing to delete 0 generated thumbnails

--> 0 thumbnails deleted

Preparing to regenerate thumbnails for 0 images Image regeneration complete.]

Then running the server and clicking on the portfolio tab shows the page not found page

parndt commented 14 years ago

Refinery version?

mushfique commented 14 years ago

I have setup the Refinery 2 weeks ago. Is there a way to find which version of Refinery is installed in my application?

The error occurs at Refinery backend

parndt commented 14 years ago

Yes, look at the file called VERSION if you cloned from git or run script/console and type Refinery.root and see the version at the end of the path if you're a gem user

parndt commented 14 years ago

if you script/plugin installed the plugin then you'll need to rename the folder to "portfolio" from "refinerycms-portfolio" -- this is to be fixed.

mushfique commented 14 years ago

VERSION file: 0.9.7.dev

The folder is already named as "refinerycms-portfolio" under vendor->plugins

parndt commented 14 years ago

Yes, i'm saying rename it from refinerycms-portfolio to just portfolio

mushfique commented 14 years ago

Renaming done. Then running the server and clicking on the porfolio tab from the Refinery backend shows the following error:

ActiveRecord::StatementInvalid in Admin/portfolio entriesController#index

Mysql::Error: Table 'project_development.portfolio_entries' doesn't exist: SHOW FIELDS FROM portfolio_entries

Do I need to do anything now in the DB?

parndt commented 14 years ago

Yeah, rake db:migrate but if that fails then we may need to start generating the migrations differently..

mushfique commented 14 years ago

rake db:migrate is done again, but it still shows the same error. Do you need the Application Trace of the error? Or, is there any other way I can generate the migrations?

parndt commented 14 years ago

I'll rework the migrations and get back to you..

mushfique commented 14 years ago

Thanks :)

parndt commented 14 years ago

Fixed with commit

mushfique commented 14 years ago

Thanks, it works now, You're a great help :). Now I can create portfolios, but can't add images to that, even from the existing images. Should I create a new issue for this? Or, is there anything I'm still missing?

parndt commented 14 years ago

did you run

rake refinery:portfolio:install force=true

?

mushfique commented 14 years ago

It works now! I previously used: rake refinery:portfolio:install --force Thanks again for your great help :)

mushfique commented 14 years ago

Using the news plugin with portfolio creates problem from my side. I have created an issue in: http://github.com/resolve/refinerycms-news/issues/issue/3

mushfique commented 14 years ago

Thanks for solving the issue with news. I have two issue regarding portfolio.

  1. Is there any way to remove images from a portfolio entry? I can add images to an entry, but can't find any option to remove from it.
  2. Adding images from 'Existing image' option works fine, but the 'New image' option doesn't work on my side.
parndt commented 14 years ago
  1. Yes, hover over an image and a delete button appears.
  2. New image was working for me but this is a refinery core thing (portfolio hooks into refinery core image picker for its image dialogue so it's not the fault of this plugin but with core if something's broken. Perhaps you need to update.)
mushfique commented 14 years ago

You are right about the 'New Image' option. From my side, it doesn't work even in the 'Create New Page' section. Maybe, an update of refinery would fix this.

But, hovering on any image shows a hand icon instead of the regular arrow icon, but I can't find any delete button anywhere.

mushfique commented 14 years ago

Btw, I can reorder the images with the hand icon.

parndt commented 14 years ago

Recommend you update your refinery to a version where the dialogue works first before debugging the other issue.

jamesfid commented 14 years ago

Also having the same issue as above (getting non-standard cursor, allowed to re-order, but not delete).

parndt commented 14 years ago

The non-standard "hand" cursor is intended to show you that you can drag..

So I guess this confirms the issue with the delete being missing though, which is very strange. Can you try a forced reload (control+shift+f5 on most systems) to get the right js/css ? Do you have the same javascript and stylesheet files as we do in the repository?

jamesfid commented 14 years ago

Did the forced reload and still nothing. Checked on all my browsers (FireFox 3.6.6, Opera 9.64, and some flavor of IE).

I understand what the cursor is supposed to represent, but is there any particular reason that it strays from the typical Refinery style of clicking a 'reorder' button (such as on the plugin tabs, reordering pages, etc).

My CSS/JS are current as of the latest commit.

parndt commented 14 years ago

Fixed with commit and have released a new gem 0.9.7

So small we missed it.