PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Sat Mar 22, 2008 9:48 am Reply with quote Back to top

I have been trying to install the attachment mod, but when I run the install.php I get the following errors.


Warning: main() [function.main]: open_basedir restriction in effect. File(/modules/Forums/nukebb.php) is not within the allowed path(s): (/home/*****/public_html) in /home/*****/public_html/brzjcphp/modules/Forums/install.php on line 16

Warning: main(/modules/Forums/nukebb.php) [function.main]: failed to open stream: Operation not permitted in /home/*****/public_html/brzjcphp/modules/Forums/install.php on line 16

Fatal error: main() [function.require]: Failed opening required '/modules/Forums/nukebb.php' (include_path='.:/usr/share/pear') in /home/*****/public_html/brzjcphp/modules/Forums/install.php on line 16


above URL edited to *****

If I click on the Forums button in Admin I get the following error.

Could not query attachment information

DEBUG MODE

SQL Error : 1146 Table '*****.nuke_bbattachments_config' doesn't exist

SELECT * FROM nuke_bbattachments_config

Line : 91
File : attachment_mod.php


This makes sense if I haven't yet been able to run the install.php script.

Can't find anything in the Forums and guess its to do with the install script looking for files in the wrong place. The website is in a sub-directory of the main site, just to make thing more interesting.

John
View user's profile Send private message Visit poster's website
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1390
Location: United Kingdom

PostPosted: Sat Mar 22, 2008 10:49 am Reply with quote Back to top

Have you checked to make sure the nukebb.php file is located in modules/forums/ ?
View user's profile Send private message
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Sat Mar 22, 2008 10:57 am Reply with quote Back to top

jakec wrote:
Have you checked to make sure the nukebb.php file is located in modules/forums/ ?


Yep first thing I checked. I have also tried changing the pointers in the install script as follows.


require_once("/brzjcphp/modules/Forums/nukebb.php");
$phpbb_root_path = '/brzjcphp/modules/Forums/';


Still no luck.

John
View user's profile Send private message Visit poster's website
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1390
Location: United Kingdom

PostPosted: Sat Mar 22, 2008 11:17 am Reply with quote Back to top

I think this may be a host issue, hopefully Evaders, or one of the other mods can help when they are on.

You could of course manually install the tables.
View user's profile Send private message
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Sat Mar 22, 2008 11:45 am Reply with quote Back to top

jakec wrote:
I think this may be a host issue, hopefully Evaders, or one of the other mods can help when they are on.

You could of course manually install the tables.


I assume I would need to install the SQL from the attach_mysql_schema.sql first then from the attach_mysql_basic.sql file after as the database on my site is MySQL.

John
View user's profile Send private message Visit poster's website
bprsk8r4272
Regular
Regular


Joined: Jan 23, 2007
Posts: 82
Location: Rochester, Ny

PostPosted: Sat Mar 22, 2008 11:51 am Reply with quote Back to top

you can try my installer if you want
Only registered users can see links on this board!
Get registered or login to the forums!
just extract the folder and upload it to your website and run
Only registered users can see links on this board!
Get registered or login to the forums!
in your browser
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Sat Mar 22, 2008 3:39 pm Reply with quote Back to top

bprsk8r4272 wrote:
you can try my installer if you want
Only registered users can see links on this board!
Get registered or login to the forums!
just extract the folder and upload it to your website and run
Only registered users can see links on this board!
Get registered or login to the forums!
in your browser


Thanks for the offer, did download it and between your files and the original RN files have managed to sort of get it working.

The TEST button in the Forums config panel still doesn't work, gives an error on the upload directory.

Also because I couldn't use the installer I had to go into MySQL Admin and run the SQL files to get all tables created / updated. I also found that I had to rename the files to change from phpBB_*** to nuke_bb****

Now trying to work out how to allow upload of Acrobat PDF files without allowing any other DOC type files.

John
View user's profile Send private message Visit poster's website
bprsk8r4272
Regular
Regular


Joined: Jan 23, 2007
Posts: 82
Location: Rochester, Ny

PostPosted: Sat Mar 22, 2008 4:43 pm Reply with quote Back to top

yeah the test settings doesnt work
the installer renames phpbb to nuke_bb so thats why you had to change that cause you did it manually

to allow or disallow a file extension go to extension group control
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Sat Mar 22, 2008 5:05 pm Reply with quote Back to top

bprsk8r4272 wrote:
yeah the test settings doesn't work
the installer renames phpbb to nuke_bb so that's why you had to change that cause you did it manually

to allow or disallow a file extension go to extension group control



Ok still got problems, I have managed to set up a separate Acrobat extension permission in admin and remove it from the document group, also increase size allowed size for Moderators.

When I go to a post and try to edit it and add an attachment i get the following error when I submit the page.

Invalid Session. Please resubmit the form.

Resubmitting just puts me round in a circle.

John
View user's profile Send private message Visit poster's website
bprsk8r4272
Regular
Regular


Joined: Jan 23, 2007
Posts: 82
Location: Rochester, Ny

PostPosted: Sat Mar 22, 2008 5:16 pm Reply with quote Back to top

have you setup your cookies correctly on the forums?
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Gremmie
Moderator


Joined: Apr 06, 2006
Posts: 2131
Location: Iowa, USA

PostPosted: Sat Mar 22, 2008 5:18 pm Reply with quote Back to top

Please search the forums for invalid session. It is almost always a sign that the cookie settings aren't quite correct in the forums admin config.
View user's profile Send private message
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Sat Mar 22, 2008 5:39 pm Reply with quote Back to top

bprsk8r4272 wrote:
have you setup your cookies correctly on the forums?


This was an upgrade from RN2.10.01 to RN2.20.01 and as far as I can see the cookie settings haven't changed.

I can preview the post with and without an attachment but can't post it.


***UPDATE***

Ok have just changed both cookie name and Domain name, to make sure they are different between both sites.

Still getting same error.

Could this still be a problem with the attachment mod.

Will try again tomorrow need sleep zzzzzzzzzzzzzzzzz.


John
View user's profile Send private message Visit poster's website
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Sun Mar 23, 2008 10:33 am Reply with quote Back to top

Ok have changed the cookie settings as per PHP-Nuke/PHPbb Cookie Settings - The DEFINITIVE ANSWER and other posts regarding Invalid Session errors.

No luck so finally checked my site backup of the database and reset the settings to those that worked Ok before the upgrade.

on the way round the "circle" I did discover that if I use IE7 to log into the website as a normal user it just displays the user information screen for me and shows me as Offline, tried this a few times after clearing cookies and the session tables.

Now can't log into to website in IE7 at all.

At least Firefox logs me in properly. (Also found I can't send private messages either - same invalid session error)


Have also compared the website files against the attachment mod "modded" files from the package and they seem ok.



John
View user's profile Send private message Visit poster's website
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2587

PostPosted: Mon Mar 24, 2008 12:52 pm Reply with quote Back to top

j4rdin, I did the port of the Attachment Mod. If you are still having problems, send me the access to your site and I will try and debug it.
View user's profile Send private message Visit poster's website
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Tue Mar 25, 2008 2:58 pm Reply with quote Back to top

evaders99 wrote:
j4rdin, I did the port of the Attachment Mod. If you are still having problems, send me the access to your site and I will try and debug it.


Well seem to have sorted the problem. Have now managed to upload an attachment and can once again post and get into admin in both Firefox and IE7.

But had to change the Cookie Domain to blank, not the best solution. Have downloaded the auto_cookies.mod file and will have another play at the weekend to see if I can find a better solution.

Problem is definitely due to the site being in a sub-directory of the main site and using a different URL.

I have also found out that IE7 by default is so security locked down as standard that it won't except cookies that Firefox seems to have no trouble with at all. Finally set it up to ask for permission to accept cookies and put the site in as safe. Only use IE for testing at home normally use Firefox or IE6 at work.

Site is
Only registered users can see links on this board!
Get registered or login to the forums!


John
View user's profile Send private message Visit poster's website
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2587

PostPosted: Tue Mar 25, 2008 3:16 pm Reply with quote Back to top

That site only seems to be a frame for
Only registered users can see links on this board!
Get registered or login to the forums!

.brzjc.zenjudo.co.uk is what you need to use in order for your cookies to work properly
View user's profile Send private message Visit poster's website
j4rdin
Regular
Regular


Joined: May 26, 2006
Posts: 58
Location: West Sussex - UK

PostPosted: Fri Mar 28, 2008 1:22 pm Reply with quote Back to top

evaders99 wrote:
That site only seems to be a frame for
Only registered users can see links on this board!
Get registered or login to the forums!

.brzjc.zenjudo.co.uk is what you need to use in order for your cookies to work properly



Have changed cookie setting as suggested and so far so good.

John
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum