HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVES] Issue with attachments

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#95728 (In Topic #19038)
Avatar

Fan in action

I've just installed the 9.0.6 version of OCP. There are some troubles when I try to attach something to a page (images, pdf...). The page preview gives this error:

mkdir() [<a href='http://www.php.net/manual/en/function.mkdir.php'>function.mkdir.php</a>]: No such file or directory

Until yesterday I've neve had this issue with old 7.1.6 version.
Any suggestion?

Thanks
Giulio


Last edit: by Fantasma


   
Back to the top
 
Posted
Rating:
#95731
Avatar

The full stack trace would help a lot, but going on that error and a mention of previewing, I found only one possibility in the code…

I think you have a missing data_custom/spelling/personal_dicts directory. Please just create an empty directory in data_custom/spelling called personal_dicts and ensure it has full write permissions.

Or, turn the spellchecker off in the configuration.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95734

Non-joined user

The personal_dics directory already exists and has 755 permissions... The error is not only in preview, but when I save changes, too.

Here is the error log, if it could help.
28-Feb-2013 08:42:07 UTC PHP Warning opendir(/uploads/auto_thumbs) [<a href='http://www.php.net/manual/en/function.opendir.php'>function.opendir.php</a>]: failed to open dir: No such file or directory in sources/hooks/modules/admin_cleanup/image_thumbs.php on line 56 @ http://www.isolabirra.it/adminzone/index.php?page=admin_cleanup&type=rebuild&keep_no_swfupload=1

Thank you for your attention, Chris!
Back to the top
 
Posted
Rating:
#95735
Avatar

Please attach the full stack trace.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95736
Avatar

Fan in action

Do you mean "click on see a stack trace of this error" in error screen?


   
Back to the top
 
Posted
Rating:
#95738
Avatar

I'm surprised if the 'mkdir' does not come with a stack trace automatically. Can you attach a screenshot to show what you do see?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95739
Avatar

Fan in action

Here is it...





   
Back to the top
 
Posted
Rating:
#95740
Avatar

Hmm. This is baffling me rather. Okay, what's the stack trace when you click the link for it? I'm sure that'll help clear up what's happening.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95742
Avatar

Fan in action

It leads to the homepage. You can see it in the attachment




   
Back to the top
 
Posted
Rating:
#95743
Avatar

With fatalistic mode now on for that browser window, go repeat the action and it will produce a stack trace this time (as explained in the message).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95748
Avatar

Hi,

I've examined the code again. Could you have a missing uploads/attachments or uploads/attachments_thumbs folder?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95749
Avatar

Guest said

opendir(/uploads/auto_thumbs) [<a href='http://www.php.net/manual/en/function.opendir.php'>function.opendir.php</a>]: failed to open dir: No such file or directory in sources/hooks/modules/admin_cleanup/image_thumbs.php on line 56 @ http://www.isolabirra.it/adminzone/index.php?page=admin_cleanup&type=rebuild&keep_no_swfupload=1

Another possibility, based on this very strange error message.

Do you have a:

Code

$SITE_INFO['custom_file_base_stub']='';
line in your info.php file?

I'm not sure how it would get there, unless you were trying to setup shared installs from the manual instructions in the advanced configuration tutorial.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#95762
Avatar

Fan in action

Well, now it works fine!
The folder 'upload' was missing. I made the folder and the two sub-folders you wrote, and now it seems ok.
Thanks a lot
Giulio


   
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: