vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbArticles (https://vborg.vbsupport.ru/forumdisplay.php?f=106)
-   -   [Fixed] Two minor probs (https://vborg.vbsupport.ru/showthread.php?t=77244)

valentine 03-01-2005 06:16 AM

[Fixed] Two minor probs
 
Hi, I know this is gonna sound dumb because I've read all the other threads relating to this, but I just cannot fathom it out.

I have two errors:

1. Whenever I try to add a new article, I get the following error:
Code:

Warning: mkdir() [function.mkdir]: No such file or directory in /articles.php on line 366

Warning: copy(home/tr8der/public_html/images/articles/12/techanal.jpg) [function.copy]: failed to open stream: No such file or directory in /articles.php on line 378

And at the same time

Code:

Error encountered while trying to upload the image.
I figured this was down to my paths, but I've run the findpath.php script which generates:

home/name/public_html/

So i've used:

home/name/public_html/images/articles/ (these go in the same "images" folder as the default for VB - is this the problem) and its set to CHMOD 777.

and i've used home/name/public_html/images/articles/category/

but no dice.


The second error is in the ACP:

Code:

Warning: main(home/tr8der/public_html/admincontrol/FCKeditor/fckeditor.php) [function.main]: failed to open stream: No such file or directory in /admincontrol/vbarticles.php on line 29

Warning: main() [function.include]: Failed opening 'home/tr8der/public_html/admincontrol/FCKeditor/fckeditor.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincontrol/vbarticles.php on line 29

Again, i've checked the path for this and it appears to be OK, although I'm sure I'll have missed doin' something simple.

If anyone could help/suggest a fix, I'd be grateful.

I'm on v3.0.5 btw, using vbAdvanced.



EDITED:


Surprise surprise. I figured it out.

For anyone else who wants to make themselves look stupid, I'll save you the trouble. You need to have a "/" at the beginning of the paths, as well as the end.

Now everything works as intended.

Superb hack. Absolute top marks.

cinq 03-01-2005 11:07 PM

Quote:

Originally Posted by valentine
EDITED:

Surprise surprise. I figured it out.
For anyone else who wants to make themselves look stupid, I'll save you the trouble. You need to have a "/" at the beginning of the paths, as well as the end.

Glad you worked it out.
Yep, you need the slashes, because that is the full path. :)


All times are GMT. The time now is 02:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02546 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete