Re: [extension release] pun_attachment

Doesn't work. PHP-error: "SAFE_MODE restriction...". PunBB gives out that it can't create file.
Why can PunBB create files in the cache directory, but not in other directories?

Re: [extension release] pun_attachment

Slavok wrote:

Is it a fresh install or an upgrade from another version of the extension? If it is an upgrade, post the version of your extension before upgrading, please.

That's not an upgrade of this extension.

I had the same kind of extension when I was in PunBB 1.1.x but I updated step by step to the last version (1.3.4) and everything else works.

So the error happens when I want to edit a post

The error occurred on line 20 in /home/www/63b135ce53397c1b0bcb278bb4fc6df0/web/comite/post.php(108) : eval()'d code

Database reported: Unknown column 'secure_str' in 'field list' (Errno: 1054).

and also when I clic on the "Add file" button

The error occurred on line 21 in /home/www/63b135ce53397c1b0bcb278bb4fc6df0/web/comite/edit.php(75) : eval()'d code

Database reported: Unknown column 'secure_str' in 'field list' (Errno: 1054).

And everywhere on my forum I have this error :

Notice: Undefined index: attach_disable_attach in /home/www/63b135ce53397c1b0bcb278bb4fc6df0/web/comite/viewtopic.php(***) : eval()'d code on line **

With differents figures instead of the * and once in header instead of viewtopic.

And I'm with the version 1.0.2 of the extension.

Re: [extension release] pun_attachment

There's no more developpement on this extension ???

Or nobody has no idea of how to solve my problem ?

Thx for you answers !

Re: [extension release] pun_attachment

Hi,

ok, I think I know how to solve it.

I had a few problems too. I upgraded from a previous version. Can't remember what version exactly and the problem was that the column 'secure_str' in my database was missing. Like the error message says. So I removed the extension completly. Deleted everything in the databased connected to the extension and then I installed it again.

Maybe you can just add the secure_str column by hand? I don't really know how the extension works. So if you want to keep your old attachments maybe you will have to do it by hand?! I don't know.

Another problem I had was that the value for the folder where the attachments are saved wasn't updated. So it still tried to upload the attachments to the old folder which didn't exist anymore.

But if you remove everything that shouldn't be a problem. Just don't forget to remove the values in the config table.

Re: [extension release] pun_attachment

maststef wrote:

Doesn't work. PHP-error: "SAFE_MODE restriction...". PunBB gives out that it can't create file.
Why can PunBB create files in the cache directory, but not in other directories?

In PHP, there are some security and safe mode directives. Could you post the values of these directives, please?

Re: [extension release] pun_attachment

Guys i cant seem to increase the size of an upload.

I have changed the settings in the Administrations-> Group settings but it still limits the upload. Any ideas?

Re: [extension release] pun_attachment

Tagge wrote:

Hi,

ok, I think I know how to solve it.

I had a few problems too. I upgraded from a previous version. Can't remember what version exactly and the problem was that the column 'secure_str' in my database was missing. Like the error message says. So I removed the extension completly. Deleted everything in the databased connected to the extension and then I installed it again.

Maybe you can just add the secure_str column by hand? I don't really know how the extension works. So if you want to keep your old attachments maybe you will have to do it by hand?! I don't know.

Another problem I had was that the value for the folder where the attachments are saved wasn't updated. So it still tried to upload the attachments to the old folder which didn't exist anymore.

But if you remove everything that shouldn't be a problem. Just don't forget to remove the values in the config table.

Now it works !

Thank you !

Re: [extension release] pun_attachment

There are problems with many types of files i.e .xls, .doc, .ppt,... w/ me it just works with .pdf only. Any advice?

Re: [extension release] pun_attachment

Do any errors appear after uploading the files? Describe in more detail way, please.

Re: [extension release] pun_attachment

There was no error, just can't open the file after downloading sad

Re: [extension release] pun_attachment

seikou wrote:

There was no error, just can't open the file after downloading sad

it can sound weirdly, but there can be a problem with the translation... I have had the same problem with the Uploader mod in punbb 1.2

the problem was, that i translated the mod into slovak language (with accents) and I saved the language file as utf8
and when I downloaded f.e. a .doc file, then I couldn't open it...
so don't save it as utf8 but replace the special characters with those combinations of letters (like in Dreamviewer)

Last edited by jacofan (2009-09-15 07:07:58)

Re: [extension release] pun_attachment

jacofan wrote:
seikou wrote:

There was no error, just can't open the file after downloading sad

it can sound weird, but there can be a problem with the translation... I have had the same problem with the Uploader mod in punbb 1.2
the problem was, that i translated the mod into slovak language (with accents) and I saved the language file as utf8
and when I downloaded f.e. a .doc file, then I couldn't open it...
so don't save it as utf8 but replace the special characters with those combinations of letters (like in Dreamviewer)

Thks for your reply but when i try just using English only the problem still there. So my case could not be the same w/ yours.
Note: My Server is Linux & client is Windows

Re: [extension release] pun_attachment

seikou wrote:

There was no error, just can't open the file after downloading sad

Is uploaded file attached to the post?

Re: [extension release] pun_attachment

Slavok wrote:
seikou wrote:

There was no error, just can't open the file after downloading sad

Is uploaded file attached to the post?

Yep, attached successfully.  sad

Re: [extension release] pun_attachment

Hello
Any advise...?
Warning: touch() [function.touch]: SAFE MODE Restriction in effect. The script whose uid/gid is 915/916 is not allowed to access /home/domains/mydomain/public_html/foorum/extensions/pun_attachment/attachments/7b418f8cd390d84b393c0b74ab0a3cd7 owned by uid/gid 100/500 in /home/domains/mydomain/public_html/foorum/admin/extensions.php(176) : eval()'d code on line 115

Using PunBB 1.3.4 and fresh pun_attach install. Directory permission set to 777, but still no luck...

Thanks!

Re: [extension release] pun_attachment

Thanks for the info, I appreciate it.