Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
ravenworks
Hangin' Around



Joined: Sep 22, 2010
Posts: 33
Location: Arizona

PostPosted: Wed Dec 08, 2010 9:45 pm Reply with quote

If this has been addressed elsewhere I apologize for posting it here but I could not find an answer.

Running RN 2.4.1 with the stock forums installation.
In phpbb admin we get errors when accessing "Attachments" or "Extensions" functions. Everything else appears to be working fine.

For any of the "Attachments" functions we get this error:
Fatal error: Call to undefined function include_attach_lang() in /home/gcpba/public_html/modules/Forums/admin/admin_attach_cp.php on line 52

For any of the "Extensions" functions we get this error:
Fatal error: Call to undefined function include_attach_lang() in /home/gcpba/public_html/modules/Forums/admin/admin_extensions.php on line 54

I thought I had found the problem when I realized we were using a template that had no forum directory (Sand_Journey) so following this thread:
http://www.ravenphpscripts.com/postt19241.html
I copied the missing directory from the stock fisubice theme. While this made our forum look better, it did not resolve the errors.

Any advice or suggestions will be greatly appreciated.
 
View user's profile Send private message Visit poster's website
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Wed Dec 08, 2010 11:00 pm Reply with quote

function include_attach_lang is in the script:

/modules/Forums/attach_mod/attachment_mod.php

Ensure that folder exists, at that path, and the file within it. If it does, then we can go on from there.. it will be a pathing issue inside your theme. More than likely, you will need to add or subtract one directory traverse due to the folder differences between the themes. But let's start with the first request...

- Keith

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
ravenworks







PostPosted: Wed Dec 08, 2010 11:34 pm Reply with quote

Keith -

Thanks for the quick reply.

Yes, /modules/Forums/attach_mod/attachment_mod.php exists

- Noel
 
PHrEEkie







PostPosted: Thu Dec 09, 2010 12:48 am Reply with quote

Alrighty...

The script containing the function is called by /modules/Forums/common.php

Let's open up common.php. Look near the bottom of the script, approx. line 246. Does this match EXACTLY?

Code:
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);



- Keith
 
ravenworks







PostPosted: Thu Dec 09, 2010 12:26 pm Reply with quote

Keith -

Well, it is the strangest thing...

The code matches exactly but... I'm looking at the copies I have on my computer.

But then I had the thought to check modification dates from my original RN to those on the site...
The site dates on many of the files (the one in question included) were older than the files I had downloaded!

So I figured I'll just upload the "newer" file and it made the solution!

This is confusing because the install I performed of RN was from an untarred file that I uncompressed on the site.

I'm pretty sure it is from the same version I have on my computer. Some of the files I checked have the same modification dates, a few are much older on the site but most are only a few days older than the files I have locally.

Not sure what happened but I guess the important thing is that it is working now.

Go figure,

Noel
 
PHrEEkie







PostPosted: Thu Dec 09, 2010 1:17 pm Reply with quote

ravenworks wrote:
[...]the important thing is that it is working now.


Indeed = )

Gotta love the easy ones Wink

cheers!

- Keith
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©