Hello, I am sorry if this have been already discussed here, but I tried to search this problem on the whole forum and I simply cant find anything about it. Therefore I am posting it.
I am using PHP-NUKE 8 based site for some time and I decided to migrate it to Raven. I have successfully managed to migrate my current site with all its content to Raven 2.20.01 (also thanks to many topics related to this problem on this forum). Everything seems to work ok, but I have one issue for which I can't find a solution.
May be its about me being noob as I don't have much experience with php and stuff, but to the problem ...
The NEWS content is visible when you are not logged in. So for Anonymous users, lets say all visitors its visible. So its according to settings of this module, which is fine. But when you log in the NEWS are gone. Also when you log as an administrator the NEWS just disapear. There is no group assigned to NEWS module. I did not make any changes in the code. All the main core file edits I have done accordingly. And still this strange behavior is there.
I hope I have described the problem successfully and please accept my apology if this problem have been solved here already. If yes I would really appreciate if someone would post me a link to forum where can I find an answer, or any other help would be really welcomed as I am lost to be honest.
Thank you very much.
Last edited by sutterboy78 on Tue Jul 08, 2008 5:57 pm; edited 1 time in total
ok so a little update, dont know why i didnt notice it before. When I am logged in with my god admin user but not logged as regular user the news are still visible.
So it only disapearing for regular members. The NEWS modul is set to All Visitors as it is placed as Home page.
Joined: Aug 29, 2004 Posts: 7264 Location: Arizona
Posted:
Tue Jul 08, 2008 5:16 am
sutterboy78, what do you mean in your original post by this statement:
Quote:
All the main core file edits I have done accordingly.
Are you using the provided news module that came with RavenNuke or some other one?
I would also try turning on the db logging to setting '1' within rnconfig.php and then check your rnlogs/dblog file to see if there are any errors after trying this scenario again.
sutterboy78, what do you mean in your original post by this statement:
Quote:
All the main core file edits I have done accordingly.
Are you using the provided news module that came with RavenNuke or some other one?
I would also try turning on the db logging to setting '1' within rnconfig.php and then check your rnlogs/dblog file to see if there are any errors after trying this scenario again.
I mean the necessary edits in config.php for example to connect the db, or allowable html to be able to use images in news module ... just these basic things. May be I should have posted this in the thread related to problems after migrating from standard php-nuke to raven nuke. Anyway ... I am using the standard raven news module, I didnt make any changes to included modules or blocks or anything else. Im using custom theme and some additional modules and blocks.
I have tried to use different theme of course, and the problem is not theme related. Now I will try to follow your advices and will let you know the results.
Joined: Aug 30, 2005 Posts: 2063 Location: near Albany NY
Posted:
Tue Jul 08, 2008 8:07 am
I know you said you used a different theme, but did you try fisubice? The themes definitely do different things with articles depending on whether you are logged in and whether you are an admin so that COULD be a source of the problem.
The other thing that could help us would be if you went into your modules table with PHPmyadmin and just copied and pasted the field names and values from the News record there. Post them here and we can compare with a working version.
I know you said you used a different theme, but did you try fisubice? The themes definitely do different things with articles depending on whether you are logged in and whether you are an admin so that COULD be a source of the problem.
The other thing that could help us would be if you went into your modules table with PHPmyadmin and just copied and pasted the field names and values from the News record there. Post them here and we can compare with a working version.
Yes I tried fisubice. Somewhere on the forum I found that fisubice is theme designed for Raven and that it is necessary to always try fisubice before posting a problem.
Here is the content of my NEWS row in MODULE table
mid - 10
title - News
custom_title - News
active - 1
view - 0
groups - (blank)
inmenu - 1
mod_group - 0
admins - .... (name of admins comma separated)
Also I have tried to log the DB errors in mlogs/dblog and the only thing I recieved there is something about duplicate key '0' (key number 1) with this message:
Joined: Aug 30, 2005 Posts: 2063 Location: near Albany NY
Posted:
Tue Jul 08, 2008 9:03 am
The news record in the modules table appears similar to mine so I don't see that as a source of the error. The dblog entries do not look related either. If you are trying fisubice and that doesn't work then it rules out a theme related problem. I guess that gets to a custom edit you did. Could you substitute in the mainfile that comes with the 2.20.01 distribution? Is your news/index.php the same as what's in the distribution? I think we need to look at any differences between your programs and what's in the distribution because that would seem to be the source of the problem.
I tried to replace the mainfile.php with the one from the original Raven Nuke distribution and still the same problem. News are visible only till you are not logged in. So for All Visitors its runing perfect. But when you log in the News disepear.
I think this is not related to any edit I have done, because Im always double, triple checking what Im doing and besides that all the modifications I did are only in those additional blocks and modules Im using on the site.
I think it has something to do with the DB. But the strange thing is that when I create new story in news it still does not apear when Im logged. When I create new user still the same. I dont know what else to try. I really didnt make any modifications to the Raven Nuke files except few very small changes and Im pretty sure these changes cant affect the site itself. This is really strange.
Nope ... that didnt help ... I tried to deactivate all not necessary blocks, then I tried also modules ... neither of those ways didnt work ...
I wish I would understand php more ... I tried also to put Forums on home page, then I changed News to Registered Users Only and nothing ... again no success ... then I tried set it for Registered and also Group I have on site (only one group tho, but still I tried that) ... and again no success ...
If anybody here have some other suggestions I will be happy for it.
By the way thank you all for your replies to my problem. Really thanks for your interest!
I tried to substitute '/modules/News/index.php' with the one from my original PHP-NUKE based site and bingo the News are back also when I'm logged in as member. Then I put the original index.php file which is part of the Raven Nuke 2.20.01 distribution and the problem was back.
So now I'm going to try go through the code and find the differences. May be some of you here would like to help me with it. I think that the problem could point to something what is not correct in the Raven's '/module/News/index.php' file ... may be its an issue only for my site I dont know, but I think its worth of checking it ... at least ...
Joined: Aug 29, 2004 Posts: 7264 Location: Arizona
Posted:
Tue Jul 08, 2008 6:19 pm
Well, to be quite honest, none of us have seen this issue before. So, now I suspect that you really have yet another file that might not have uploaded completely or is corrupted? Or, there is still a table/data discrepancy somewhere due to your conversion from 8 to RN.
I would try using FileZilla from SourceForge.net and if the target server is Linux, upload in binary mode.
I am pretty sure this is not a core RavenNuke issue as almost all of us use News as our home module and we do not experience this behavior.
I would say so, but I'm using FileZilla for ages, actually dont even remember if I ever used something different. For working with the site files I'm using Dreamweaver, for small code updates and file edits I'm using Textpad. About the ftp uploading method, yes its Linux server and I'm using binary mode for uploading. There should not be any problem. And even if I'm really beginner, I'm using logic mind while editting files and the scripting methods are not totally unknown to me. Anyway I still call myself noob in this area.
But at the end I totally agree with you that the problem is most likely not RN related. But thats not the point, I just would like to isolate it and find a solution for it as substitution of the file from the original PHP-NUKE site is not a solution. I believe there is problem in DB, I have used MySQLDiff for "downgrading" the DB of my PHP-NUKE 8 site to RN DB and there I think is the problem.
I will try to go line by line through the code of those files and will try to find the linkage with the DB and the differences which could cause this. May be I will find something.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum