Page 1 of 1

A Few Questions..

Posted: Thu May 27, 2004 5:59 pm
by JustinS
Garvin and Support:

I was originally posting questions on the mailing list however, now I am unable to login to the list to receive and view questions and responses. I am using S9y current version and I am moving to a new server, I was curious to know how I could move all of my existing entries and archived entries to the new sever so that they will all be there, along with SHOUTBOX entries etc.

I'm also curious as to why my Image(s) and Manager won't work. It gives me errors like ::

Code: Select all

Warning: getimagesize(/usr/home/ourlife/public_html/uploads/modmasterlogo.serendipityThumb.jpg): failed to open stream: No such file or directory in /usr/home/ourlife/public_html/serendipity_functions_images.inc.php on line 417
I get that when I click on Manage Images. It never creates the thumbnail either.

Any assistance appreciated.

Re: A Few Questions..

Posted: Thu May 27, 2004 7:22 pm
by garvinhicking
Hi Justin!

Migrating your s9y should not be hard: Just copy all existing files from your s9y installation directory. Depending on how your server was setup, you might be getting problems with reading some files; in that case you should ask your hoster to correct the permissions in your directory so that you can read all files.

Then create a database dump of your s9y database (via phpMyAdmin or mysqldump) and copy that to your new server, where you import it.

Now you have to edit the file serendipity_config_local.inc.php and edit the variables there to reflect your new DB pass/name/user.

After that you should be able to re-login into your s9y. You may need to browse the serendipity_config table and alter all Path settings to reflect your new settings.

The errors you are getting may refer to wrong pathnames or wrong directory permissions; please check what those permissions are, and if the files are in place there. If you don't get thumbnails created then you don't have imageMagick or GD installed, depending on what you told s9y should handle your images.

Hope that already helps you along the way :)

Regards,
Garvin.

More Detail...

Posted: Thu May 27, 2004 10:05 pm
by JustinS
Thanks Garvin!

Apologies, I guess I should give a bit more detail to my situation. I am currently hosting this blog / s9y on my own server. I am going to install a new copy of s9y back onto the server, is it possible to just backup the database and then reimport it into the new copies db?

I've gone over the image problem with J. Tate numerous times via IRC about the thumbnails not being created and so on. He's even logged into the server and played with it to see if he could figure it out. I'm not able to find what is causing the problems, the permissions seem correct. However I am running FreeBSD 4.8 -Stable with Cpanel.

If you would like and have time, could you respond with answer(s) to my above question, and then a list of the privledges that should be set to each directive/file for s9y?? I would appreciate it.

Thanks Gavin!

Re: More Detail...

Posted: Fri May 28, 2004 11:35 am
by garvinhicking
Hi Justin!
JustinS wrote: Apologies, I guess I should give a bit more detail to my situation. I am currently hosting this blog / s9y on my own server. I am going to install a new copy of s9y back onto the server, is it possible to just backup the database and then reimport it into the new copies db?
Yes, you can export and then re-import the SQL dump. You need to alter the serendipity_config table however to edit those variables containing paths - and alter them to the new paths. That could also be done via the serendipity configuration panel, but you may have problems getting there with wrong paths inside the DB.
I've gone over the image problem with J. Tate numerous times via IRC about the thumbnails not being created and so on. He's even logged into the server and played with it to see if he could figure it out. I'm not able to find what is causing the problems, the permissions seem correct. However I am running FreeBSD 4.8 -Stable with Cpanel.
So do you use ImageMagick or GDLib?
If you would like and have time, could you respond with answer(s) to my above question, and then a list of the privledges that should be set to each directive/file for s9y?? I would appreciate it.
Set all subdirectories to rwx-rx-rx. Then set the 'archives', 'uploads' and the core basedirectory to rwxrwx-rx or rwxrwxrwx, depending whether your webserver fits in "group" or "other" permission mode.

Set all files to rw-r-r. Then set the '.htaccess' and 'serendipity_config_local.inc.php' to the owner user of your webserver and apply rwx----- to it.

That should do. :)

Posted: Fri May 28, 2004 4:31 pm
by JustinS

Code: Select all

Serendipity Authoring Suite
Adding image...


Warning: move_uploaded_file(/usr/home/ourlife/public_html/uploadstulsa.jpg): failed to open stream: Permission denied in /usr/home/ourlife/public_html/serendipity_admin_images.inc.php on line 141

Warning: move_uploaded_file(): Unable to move '/var/tmp/phpBegiam' to '/usr/home/ourlife/public_html/uploadstulsa.jpg' in /usr/home/ourlife/public_html/serendipity_admin_images.inc.php on line 141
ERROR_UNKNOWN_NOUPLOAD
That is the error I get now when I try to add images...

I changed all the permissons as you directed in your previous post Garvin. Ideas now?

Line 141 of file in question is:

Code: Select all

            if (move_uploaded_file($_FILES['userfile']['tmp_name'], $target)) {

Posted: Fri May 28, 2004 4:34 pm
by JustinS
Changed pathname and now I get this::

Serendipity Authoring Suite
Adding image...

File tulsa.jpg successfully uploaded as /usr/home/ourlife/public_html/uploads/tulsa.jpg
Thumbnail created.
Done.

however no thumbnail created, when I click on manage image I get::

Code: Select all

Serendipity Authoring Suite

Warning: getimagesize(/usr/home/ourlife/public_html/uploads//tulsa.serendipityThumb.jpg): failed to open stream: No such file or directory in /usr/home/ourlife/public_html/serendipity_functions_images.inc.php on line 417

Posted: Fri May 28, 2004 4:42 pm
by garvinhicking
Hi Justin!

Once again: Do you use ImageMagick or GDLib, and which version did you compile for those (either see your bash or phpinfo() for version info). :-)))

Regards,
Garvin.

Posted: Fri May 28, 2004 5:07 pm
by JustinS
Well I was using GDLib, however I just completed the install of ImageMagick 6.0.0 or somen like that::

Code: Select all

Warning: getimagesize(/usr/home/ourlife/public_html/uploads//tulsa.serendipityThumb.jpg): failed to open stream: No such file or directory in /usr/home/ourlife/public_html/serendipity_functions_images.inc.php on line 417

Code: Select all

Version: ImageMagick 6.0.0 05/06/04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
I saved phpinfo(); at http://www.our-life.org/info.php

Thanks man.

Getting same error even after I put in the convert path etc into configuraiton*

Posted: Fri May 28, 2004 6:25 pm
by garvinhicking
Okay, now that you're using imagemagick, you need to rebuild the thumbs: There's a 'Synch thumbnails' option which you should try.

Then the missing thumbnails SHOULD be recreated. Hope that works, I'll eventually only be able to reply again to you after the weekend...

Regards,
Garvin.

Posted: Sat May 29, 2004 4:31 pm
by JustinS
Nope, still not working -- still gives me error,

This is weird...

Posted: Sat May 29, 2004 8:15 pm
by garvinhicking
JustinS wrote:Nope, still not working -- still gives me error,

This is weird...
What does the 'Synch images' function output? If possible, please try latest CVS which should be more verbose on that part.

Do the mentioned files really not exist? Have you checked for any .serendipityThumb image files in the directory? Does the mentioned directory itself exist?

Regards,
Garvin.

Posted: Sun May 30, 2004 3:02 am
by JustinS
Garvin, I'm not sure what the synch images function is outputting and yes the directories do exist. However no thumbnails are being generated. I also think something is now messed up with my ImageMagick because of whatever reason I tried it via console and it was not working correctly ::

Also I switched themes, and now I have all types of nasty style sheet information being outputted inside my entries (past entries) that I dumped back into the db.

Make sense? let me know if you want server and login info for s9y to look at it, if you'd like.

Thanks,

Justin

Posted: Tue Jun 01, 2004 11:41 am
by garvinhicking
Hi Justin!

I'll try to get in contact with you through ICQ and see if we can work it out.

Regards,
Garvin.