
randy1963
New User
Dec 20, 2011, 2:49 PM
Post #1 of 4
(572 views)
Shortcut
|
|
Fatal Error uploading an image
|
Can't Post
|
|
When I try to upload an image into the wysiwyg on all pages, this is the error I get: Warning: require_once(lib/menus/default/uploadForm_functions.php): failed to open stream: No such file or directory in /data/10/0/103/119/918771/user/939622/htdocs/cmsAdmin/lib/menus/default/wysiwygUploads.php on line 3 Fatal error: require_once(): Failed opening required 'lib/menus/default/uploadForm_functions.php' (include_path='/data/10/0/103/119/918771/user/939622/htdocs/cmsAdmin:/data/10/0/103/119/918771/user/939622/htdocs/cmsAdmin/3rdParty:.:/usr/services/vux/lib/php') in /data/10/0/103/119/918771/user/939622/htdocs/cmsAdmin/lib/menus/default/wysiwygUploads.php on line 3 ------------------------------------------ Here is the code from the top of the page: <?php header('Content-type: text/html; charset=utf-8'); ?> <?php /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */ // load viewer library $libraryPath = 'cmsAdmin/lib/viewer_functions.php'; $dirsToCheck = array('/data/10/0/103/119/918771/user/939622/htdocs/','','../','../../','../../../'); foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }} if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); } // load records list($home_improvementRecords, $home_improvementMetaData) = getRecords(array( 'tableName' => 'home_improvement', 'allowSearch' => '0', 'limit' => '1', )); $home_improvementRecord = @$home_improvementRecords[0]; // get first record // show error message if no matching record is found if (!$home_improvementRecord) { dieWith404("Record not found!"); } ?> --------------- What could be causing this? Thanks.
|