Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 06:04:01 PM

Pages: [1]   Go Down
  Print  
Author Topic: help with php and cms v3  (Read 2661 times)
minh
Newbie
*
Offline Offline

Posts: 5


« on: November 29, 2009, 08:29:14 PM »

Hello All.
I recently downloaded a flash template online which uses CMS v3 to be updated.

I assumed this would work fine with no problems as im not that great with webpages. I was wrong.  Doh

Now, i seem to have a problem. From what i know with the support that ive had, the template i have uses php, where as lunar pages run suphp and there seems to be some issue with it.

I can update text via the admin panel with CMS v3, however i cannot upload pictures onto the admin pannel.

I was advised by support to make changes seen in italics which i have done, but this still does not work..

suPHP_ConfigPath /home/username/public_html/

You may add the following line into your php.ini file :
session.save_path = /tmp


Can anyone out there assist?

Thanks in advance.


   
Logged
Danielle
Guest
« Reply #1 on: November 29, 2009, 10:02:15 PM »

Hi minh,

When you added the suPHP_ConfigPath line, did you ensure to change username to your account username? Also, what specifically is the error you are getting when you try to upload pictures in the admin panel?

Any reason that you didn't just go with Joomla, which is provided in Fantastico and a lot of people know how to use (and could actually provide suggestions if yo uran into issues)?

Thanks.
Logged
minh
Newbie
*
Offline Offline

Posts: 5


« Reply #2 on: November 30, 2009, 01:31:15 AM »

Hi Tristan,
Yes i did change the user name to my account name.

The thing is, there is no error message that comes up when this occurs. It just fails to upload the image via the CMS admin panel..

I'm not too much of a web page person when i saw the cms v3 i though it was brilliant. i didn't know there were other programs out there that could do the same thing.. ill have a look into Joomla.

Cheers
Logged
minh
Newbie
*
Offline Offline

Posts: 5


« Reply #3 on: November 30, 2009, 02:49:08 AM »

just an update,
ive had a friend take a quick look.

He does get an error which can be seen below.

Error #2044: Unhandled uploadIoError:. text=Error #2038: File I/O Error. URL: http://domainnamehere/foldername/./savegallery.php

Does this make scence to anyone that could possibly assist?
Logged
Danielle
Guest
« Reply #4 on: November 30, 2009, 06:10:50 AM »

Could you provide a link to this CMS v3 script? I'm not certain when I look it up online what this happens to be, since Nucleus, Flash and several others come up, so I'm suspecting part of the name is being omitted.

The first rule of thumb when trying to troubleshoot an error is to find the actual product online. The next rule of thumb is to try to find a forum or forums where that product is used and look for discussions of the error being returned. Without being able to track down what product this actually happens to be, I can't go to the next step of determining forum or forums on it to look for discussions on the error you've posted.
Logged
minh
Newbie
*
Offline Offline

Posts: 5


« Reply #5 on: November 30, 2009, 03:48:07 PM »

Hi, I'll try and search for forums and see if i can find anything similar.

meanwhile, below is the script for the savegallery.php

<?php
require(dirname(__FILE__).DIRECTORY_SEPARATOR.'func'.DIRECTORY_SEPARATOR.'config.php');


if (!isset($_FILES['img'])) {
   echo "Please send one img files";
   exit;
} else {
   if (isset($_FILES['img']) && is_uploaded_file($_FILES['img']['tmp_name']) && @getimagesize($_FILES['img']['tmp_name'])!==false ) {
      $fpref = mt_rand(999,9999);
       $gl = new gallery();   
      if (!is_dir(GALLERYDIR.DS.$_POST['gname'])) {
         $gl->creategallery($_POST['gname']);
      }
      while (file_exists(GALLERYDIR.DS.$_POST['gname'].DS.'big'.$fpref.$_FILES['img']['name'])) {
         $fpref = mt_rand(999,9999);
      }
      
      $smal = $gl->saveThumbnail(GALLERYDIR.DS.$_POST['gname'].DS.'thmb'.DS, $_FILES['img']['tmp_name'], $fpref.$_FILES['img']['name']);
      move_uploaded_file($_FILES['img']['tmp_name'],GALLERYDIR.DS.$_POST['gname'].DS.'big'.DS.$fpref.$_FILES['img']['name']);
      $gl->gallerytbl[$_POST['gname']][] = array($smal, $fpref.$_FILES['img']['name'], $_POST['comment'], "", "0", "1, 1, 1, 1, 0", "");
$gl->save_table();
$gl->save_xml();
echo "Ok.";
      exit;
   }
}
return true;
?>
Logged
Danielle
Guest
« Reply #6 on: November 30, 2009, 04:01:20 PM »

Yes, but what is the link to the script for where you got the original script? I couldn't figure out the real name of it based on CMS v3, since several scripts came up returning that as part of the name. What is the actual link to download the script?
Logged
minh
Newbie
*
Offline Offline

Posts: 5


« Reply #7 on: December 01, 2009, 10:12:29 PM »

hi,
the script is currently on my site, however i downloaded it from http://myfreetemplatehome.com/templates/show-category-photography.html
Logged
Danielle
Guest
« Reply #8 on: December 01, 2009, 10:22:09 PM »

Based on what I'm finding online for this error, it has the following:

http://www.judahfrangipane.com/blog/?p=115

These all indicate it is the path being put wrong to the upload script. Do you specify a path somewhere in your settings for the file upload script? If so, what are you putting for the path to it?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: