WritheM / newznab-plusplus

No newznab+ source code here. Just a theme, plugins and added functionality.
http://www.newznab.com/
12 stars 7 forks source link

404 index page. #21

Open Saner2oo2 opened 11 years ago

Saner2oo2 commented 11 years ago

Hiya,

I get a 404 on the index page when I am logged in, if I am logged out it seems to be ok.

As soon as I login, it will error me again.

If I manually go to /browse/ (for example) it works fine, it is only the main index page.

I dont have anything fancy on the main page, just a normal content page.

I am guessing I have missed a configuration step (or similar) the only changes I have made to any files, are the manual edits to the template files as I dont have newznab in /var/www/

Any hints or pointers would be great.

S.

Edit

Everything seems to patch ok.

patch -p0 < newznab.patch (Stripping trailing CRs from patch.) patching file www/admin/role-edit.php (Stripping trailing CRs from patch.) patching file www/lib/framework/basepage.php (Stripping trailing CRs from patch.) patching file www/lib/users.php (Stripping trailing CRs from patch.) patching file www/pages/filelist.php (Stripping trailing CRs from patch.) patching file www/index.php xbmc@XBMC-PC:~/500G/500G/var/www/newznab$

pironic commented 11 years ago

I can take a look first thing Monday morning.. . However the newznab directory in the var/www folder is just the default for the newznab www folder.

What version of newznab are you running?

What branch of nn++ did you try to work with? (dev/master)

Have you edited the file locations inside the smarty plugins?

Start with those three questions and I'll get back to you first thing Monday morning when I make sure it's nothing I missed in the code.

Saner2oo2 commented 11 years ago

Hiya.

  1. whatever the latest NNplus SVN revision is (I updated it when I tried to look at this)
  2. master
  3. Yep manually changed the files in /lib/smarty/plugins/

Its strange as its only the / that fails. If I go to /browse/ or any other place its fine.

Thanks in advance for any pointers, I appreciate its no doubt my setup, I just would like to get to the bottom of it because its a great theme.

S.

pironic commented 11 years ago

Nothing is glaring at me in my code... i do wonder what the last 10 lines of your error logs might say? if using linux apache you can view the last 10 lines with tail -n 10 /var/logs/apache2/error.log

throw me what you got in there and we'll go from there.

Saner2oo2 commented 11 years ago

Sure no problem (sorry for the late reply, have not had time to play)

http://pastie.org/private/xbvesfozccdi7hyqn10r9q (The /images/ errors are gone when I change the theme to your one)

It occurs to me that I run on port 82 and not 80 could that be the cause of the problems ?

As I said it is only once I am logged in, and it is only on the home page.

Thanks for taking a look at it anyway, even if its not solvable on my box.

S.

pironic commented 11 years ago

Thanks @Saner2oo2... that makes me wonder a few more things.

we have 2 options. we can attempt to fix the older master branch to work for you (which we absolutely could do) or we could just have you check that the error still exists in the dev branch. The problem with using the dev branch is that its based on code you dont have access to yet...

To use the dev branch, you'll need to wait until rev 2876 or 2878 is released to the master svn. I have rebase milestones at those points in the dev branch.

For us to fix the master branch, i need a few questions answered... we can work through this together.

What folder are you hosting the apache site from?
is /media/500G/var/www/newznab/www/ a valid folder?
What is the default page you are trying to load when you hit the site? (you can find this in Admin Site > Site Edit > Default Home Page) What user name do you use in IRC?