Topic: pun_attachments not work

Hi all
The extension pun_attachments not work on my site
i see this error

[Tue Nov 22 14:07:23 2011] [error] [client 79.36.183.231] PHP Warning: move_uploaded_file(extensions/pun_attachment/attachments/ef75594baec7b6a90151f4815bd0d46b/626b4062bbdd43a60d1091ae43b91bac.attach) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied in /var/www/vhosts/mystie.com/httpdocs/extensions/pun_attachment/include/attach_func.php on line 128, referer: http://www.myste.com/post.php?fid=26


i have set attachments folder to chmod 777
PunBB: Ver 1.4
Php: 5.3.8-1.el5.art
Mysql: 5.1.59-1.el5.art

Re: pun_attachments not work

fantasma wrote:

[Tue Nov 22 14:07:23 2011] [error] [client 79.36.183.231] PHP Warning: move_uploaded_file(extensions/pun_attachment/attachments/ef75594baec7b6a90151f4815bd0d46b/626b4062bbdd43a60d1091ae43b91bac.attach) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied in /var/www/vhosts/mystie.com/httpdocs/extensions/pun_attachment/include/attach_func.php on line 128, referer: http://www.myste.com/post.php?fid=26

Re: pun_attachments not work

??

Re: pun_attachments not work

CHeck rights for extensions/pun_attachment/attachments/ef75594baec7b6a90151f4815bd0d46b folder.

Re: pun_attachments not work

i have removed all other extensions on the board and on the db, now it  correctly

6

Re: pun_attachments not work

I have changed my host and now the attachment image icons are pointing to the old host. how can I resolve it without deleting all the attachments and re-installing.

Thnx

Re: pun_attachments not work

Don't really know if it's the "normal" pun_attachment you mean.......
but have you changed your config.php?

Whenever I take home a copy for testing I need to change that since the eg. the database server is not the same, the domain name is not the same.

8

Re: pun_attachments not work

Yes its the normal pun_attachment and yes I have changed it to point my new use. I dont know why the icons url had not changed.

Can you delete attachments icon types? I can add new but cannot delete.

9 (edited by Millennium 2012-11-08 20:18)

Re: pun_attachments not work

k, that's weird 'cos there is no way to say where they are other then a logical path, not an entire new site.
These search paths are stored in the database in table: attach_files.
(at least in my version that I use(1.0.3) for PunBB 1.3.4)

Nope I can't remove any icons but I also don't know what that function is used for,
cos in the beginning I added a few but I can attach anything anyway so I didn't care about it.

10

Re: pun_attachments not work

Ok Iv made a search on the database and i found the link and replaced it smile
The icon are just something for the eye but they don't affect the attachments. It will be good if someone explain how to remove them.

11 (edited by Millennium 2012-11-08 21:17)

Re: pun_attachments not work

  • Do you have a domain name in the table's column?
    Can you show me an example of that?

  • What version of pun_attachment are you using?
    It gotta be a newer version where they decided to allow the upload to be on another server.

12

Re: pun_attachments not work

Iv fixed it by doing a search in MySQL database and found the link that was pointing to the old domain. changed it and it works great now.

What about removing icon types. Its easy to add my How to remove(its not necessary but who knows)?

Re: pun_attachments not work

Under 1.4.2 I get the message that the attachment plug-in is not supported...