News:

Wondering if this will always be free?  See why free is better.

Main Menu

Having problems with the package manager?

Started by [Unknown], February 20, 2005, 12:32:26 AM

Previous topic - Next topic

BigGunn

i have php 5.1.6 and I get the same damn Parse Error crap. It's very annoying :(

lordtoreador

#561
Hi,

I need little help with installing some mods to smf (v1.1.3). Mods i want apply are SMF Shoutbox v1.16 & SMF Gallery Lite v1.7.6.

I upload it to package dir and in administration i try to apply this mods. It needs to change same write rules so i wrote a name & password & click Next button. But nothing happened.  Page reload in same place only password is cleared. No errors, nothing. I cant continue install that mods.
Its any option to install it other way ?

First i have older version of SMF 1.1.1 & after install i try to upgrade to newer version. But it wrote error that is some errors in instalation but i can continue. Mod SMF 1.1.2 complete instalation but in admin panel still wrote i have version 1.1.1.  And apply 1.1.3 small update ends in error, that instalation package is corrupt. So i delete all SMF, download v1.1.3 & install again. I hope it helps with mod applying, but no. :(

I have clear instalation of SMF and all directory writable.  I try on  it on default setting on clear SMF then i change to my language & try i too. Nothing helps.

Thanks very much.

babjusi

#562
lordtoreador, log in to your ftp client and check that the ''Package'' directory is indeed chmoded to 777. If not, chmod it to 777, then inside the ''Package'' directory, create a folder called ''temp'' but without the quotes and chmod it to 777 as well. Then install This mod, which would prevent the Package Manager from removing the ''temp'' folder. Try all this in this order and let us know if it would fix the problem.

lordtoreador

Package dir is chmoded to 777. As you wrote i make temp dir inside Package dir, chmod it to 777 and then download and install the NoTempDelete mod. But when i install that mod, smf wrote an error :

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

   Type     Action     Description
1.    Execute Modification    NoTempDelete.xml    Modification parse error
2.    Execute Modification    -    Modification parse error

I continue in install, smf wrote Package is installed succesfully, but after installation i look to ftp and that Temp dir been deleted. So i make it again, chmod it to 777.

But i still cannot install any mod i want, & i dont understand how this notempdelet mod has something with instalation of other mods.

A want ask what must by fill to boxes in "FTP information required" screen (when try to apply some mod):

FTP Server: default is "localhost" (must by this or ftp like in connection in total commander, i use to enter to my FTP - hxxp:xxx.mydomain.com [nonactive])    
Port: default is "21"
Username: my usrename is same like ftp server so its like for example - hxxp:xxx.mydomain.com [nonactive]
Password: my pass
Local path to SMF: in my case is /home/www/mydomain.com/subdomains/xxx/smf   

i try a lot of changes and port, and server name and still page only refresh in same , only clear password box. Nothing happened
Thanks for help


Herman's Mixen

#564
you need to edit the package-info.xml in the *.zip or *.tar.gz file

so unpack it and change the lines which say  or something similair

<install for="1.1.2">

to

<install>

same for the <uninstall> tag

save

pack it up again as zip upload the zip true your admin panel

packages --> download !!

;)

Quote
Local path to SMF: in my case is /home/www/mydomain.com/subdomains/xxx/smf 

in most cases like plesk it does it should be this

Local path to SMF: in my case is /subdomains/xxx/smf

Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

babjusi

Have you read the first post in this topic, written by unknown? You can try to do what is described in there and run that  fix_ownership.php file. Maybe that would help.
Are you with a free or paid host? I have come across some posts here where people had the exact same error with the package manager, and they were all in a free host.


Sarge

You shouln't continue if you get a "Modification parse error"

What version of PHP is running on your hosting server? 5.2 has some issues that prevent mod installation in SMF.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

lordtoreador

yes i am on free webhosting and i think is server side problem, maybe some restricted function.

Problem is only that FTP Information required screen.
When i want delete one of mod that screen apear and do nothing.
I think that screen has script or function to make changes (chmod i think) through web page, but it isnt functional on my hosting, so if i know what changes want mod or smf want do thorough that script, and i do it through normal FTP its can by functional.

I try to look at code in mod files, what they do and where.

lordtoreador

Quote from: Sarge on July 03, 2007, 05:29:14 PM
You shouln't continue if you get a "Modification parse error"

What version of PHP is running on your hosting server? 5.2 has some issues that prevent mod installation in SMF.

yes php 5.2.x

babjusi

Try do chmod the files from the package manager in the admin panel in your forum.  If it didn''t work when chmoding with ftp, probably won''t work this way either, but the way I see it you got nothing to loose but trying this as well.

Admin Panel-Packages- Options, and scroll down to Cleanup Permissions      

lordtoreador

Quote from: babjusi on July 03, 2007, 05:46:36 PM
Try do chmod the files from the package manager in the admin panel in your forum.  If it didn''t work when chmoding with ftp, probably won''t work this way either, but the way I see it you got nothing to loose but trying this as well.

Admin Panel-Packages- Options, and scroll down to Cleanup Permissions      
Ok i try this.

I try that fix_ownership.php and that write this :

"An error occured while trying to connect. The error was:"

but no error description :(

Herman's Mixen

well according too that fix_permissions is an very old file !! 1.1 Beta 1 it said !!

you need manually edit the files with an decent php editor
i recommend zend studio / NuSphere but you can use your own ;)

here some info how to edit those files

http://docs.simplemachines.org/index.php?topic=402
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

lordtoreador

Quote from: The Burglar! on July 03, 2007, 06:04:37 PM
well according too that fix_permissions is an very old file !! 1.1 Beta 1 it said !!

you need manually edit the files with an decent php editor
i recommend zend studio / NuSphere but you can use your own ;)

here some info how to edit those files

http://docs.simplemachines.org/index.php?topic=402

heh thnx, but i dont know nothing about php programing, but i look.

I chmod all files in smf to  777 and then try to install SMF gallery mod, its some progress because dont need to change  chmod through that FTP Information required screen.

But it wrote  Modification parse error on two files :(, so i can install it. So only i ask what is that error ? Can by repaired, or something ? Thnanks to all for your help, i very appreciate this :)

Herman's Mixen

Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

lordtoreador

Quote from: The Burglar! on July 03, 2007, 06:04:37 PM
well according too that fix_permissions is an very old file !! 1.1 Beta 1 it said !!

you need manually edit the files with an decent php editor
i recommend zend studio / NuSphere but you can use your own ;)

here some info how to edit those files

http://docs.simplemachines.org/index.php?topic=402

ok i try it and with that parser : hxxp:modparser.dev.dansoftaustralia.net/index.php [nonactive]   its really easy. One problem is that gallery needs a few tables in mysql DB, so i try to create this tables in phpMyAdmin. I need more time to understand structures of this tables. I think is possible to manually install every mod that way :)
Can by easier but if i run galleryinstall.php file, that create tables in DB, its not possible through web. I think this file dont have premision to change something in DB. I upload it to ftp and run in firefox, but it wrote an error.  If i know how to run this file to create that tables, it can be easier.

Srry for my english :)

Herman's Mixen

well it easy done with phpmyadmin open the sql import window

and open the galleryinstall.php in wordpad or similair program

example

put this code in the sql query window (import)


//Picture Table
db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}gallery_pic(
ID_PICTURE int(11) NOT NULL auto_increment,
ID_MEMBER mediumint(8) unsigned NOT NULL default '0',
date int(10) unsigned NOT NULL default '0',
title VARCHAR(100) NOT NULL,
description text,
views int(10) NOT NULL default '0',
filesize int(10) NOT NULL default '0',
height int(10) NOT NULL default '0',
width int(10) NOT NULL default '0',
filename tinytext,
thumbfilename tinytext,
commenttotal int(10) NOT NULL default '0',
ID_CAT int(10) NOT NULL default '0',
approved tinyint(4) NOT NULL default '0',
allowcomments tinyint(4) NOT NULL default '0',
keywords VARCHAR(100),
PRIMARY KEY  (ID_PICTURE))", __FILE__, __LINE__);


replace {$db_prefix} with your forums prefix normally it would be

smf_

so in this case the table will be named like this

smf_gallery_pic

so you can import all tables



Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

lordtoreador

yes, i do it partialy for each table but is done and is functional :D.

I go sleep, i test  it all tomorow and do it again on my normal forum (i do it now on my test forum on second web)

I am very happy that is function :D.  Everyday a learn some new things.

Thnx very much for your time and help.


Herman's Mixen

well glad that it works in this mattter of case for ya ;)

best regards,
The Burglar!
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

lordtoreador

Quote from: The Burglar! on July 03, 2007, 07:38:17 PM
well it easy done with phpmyadmin open the sql import window

and open the galleryinstall.php in wordpad or similair program

example

put this code in the sql query window (import)


//Picture Table
db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}gallery_pic(
ID_PICTURE int(11) NOT NULL auto_increment,
ID_MEMBER mediumint(8) unsigned NOT NULL default '0',
date int(10) unsigned NOT NULL default '0',
title VARCHAR(100) NOT NULL,
description text,
views int(10) NOT NULL default '0',
filesize int(10) NOT NULL default '0',
height int(10) NOT NULL default '0',
width int(10) NOT NULL default '0',
filename tinytext,
thumbfilename tinytext,
commenttotal int(10) NOT NULL default '0',
ID_CAT int(10) NOT NULL default '0',
approved tinyint(4) NOT NULL default '0',
allowcomments tinyint(4) NOT NULL default '0',
keywords VARCHAR(100),
PRIMARY KEY  (ID_PICTURE))", __FILE__, __LINE__);


replace {$db_prefix} with your forums prefix normally it would be

smf_

so in this case the table will be named like this

smf_gallery_pic

so you can import all tables

Its not so easy as u wrote. MySql dont recognize some words so i must adjust text :

CREATE TABLE `smf_gallery_pic` (
`ID_PICTURE` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`ID_MEMBER` MEDIUMINT( 8 ) UNSIGNED DEFAULT '0' NOT NULL ,
`date` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ,
`title` VARCHAR( 100 ) NOT NULL ,
`description` TEXT NOT NULL ,
`views` INT( 10 ) DEFAULT '0' NOT NULL ,
`filesize` INT( 10 ) DEFAULT '0' NOT NULL ,
`height` INT( 10 ) DEFAULT '0' NOT NULL ,
`width` INT( 10 ) DEFAULT '0' NOT NULL ,
`filename` TINYTEXT NOT NULL ,
`thumbfilename` TINYTEXT NOT NULL ,
`commenttotal` INT( 10 ) DEFAULT '0' NOT NULL ,
`ID_CAT` INT( 10 ) DEFAULT '0' NOT NULL ,
`approved` TINYINT( 4 ) DEFAULT '0' NOT NULL ,
`allowcomments` TINYINT( 4 ) DEFAULT '0' NOT NULL ,
`keywords` VARCHAR( 100 ) NOT NULL ,
PRIMARY KEY ( `ID_PICTURE` )
) TYPE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci COMMENT = 'Picture Table'


then the tables is write correctly in mysql DB. Then i continue with all tables. After that i install a changes that wrote me Package parser on hxxp:modparser.dev.dansoftaustralia.net/index.php [nonactive] .
I try run Galleryinstall.php through web but it wrote some error. When i install it on secong forum i dont do  this, Gallery function perfectly.

Next i try install second mod - SMF Shoutbox. Same problems, i cant install it through admin panel - Packages, so i install it like Gallery :
- in first i find create table function in Sbox_setup.php and create table in my DB.
- second i make changes in files (i use PAckage parser like before)
- upload sbox files to ftp
- reload forum, but sbox write error
- so i upload sbox_setup.php on ftp and run it through web
- it wrote another error (bad tables or something)
- then i again reload forum and sbox is functional :)

so come happyend again  8)

maybe it help to somebody

mizz77

okay I am having issue too but cant seem to get any help http://www.simplemachines.org/community/index.php?topic=181591.0 is my original thread...

I just want to be able to have the most recent post at the top of its thread not pages down...

if someone would please have a look at the thread above and help me, that would be great

Advertisement: