Author Topic: Will my old shop be able to work again?  (Read 4476 times)

Offline lelekins

Will my old shop be able to work again?
« on: July 24, 2007, 07:43:21 am »
Hey, I used to have SMFShop 2.2 on my board last year, I'm pretty sure I was using one of the release candidates of SMF at the time but I was having problems and had to uninstall the shop and a few other things and reupload some smf files.
I'm really no expert in any of this, so I might need a fair amount of help :P
Anyways, today while I was browsing through some stuff in my ftp client I noticed I still had the SMF Shop folder with all of the files inside...
Now, my members have been asking me ever since I took the shop down last year to get it back (and I would like to)  Would it be possible to get the shop back up and running again? Would this include members getting credits/items back that they originally bought last year?

Also...compatibility problems, any ideas what could happen there?  I'm now using 1.1.3 but wasn't at the time of using the shop.

Any advice on how to go about this would be great :)

Or would I be better off scrapping it all and adding a new shop?

Offline feildmaster

Re: Will my old shop be able to work again?
« Reply #1 on: July 24, 2007, 09:56:36 pm »
no, there aren't many compatibility problems, and it would keep items and money only if you didn't mess with the phpMyAdmin...

Fixing it to work would just take some time since most ppl... *myself included* heavily modded 2.2 and don't have the original files you would need to fix it... but if you install 3.X it wont replace the stuff you have... keep the database stuff... n wont get rid of the stuff in the FTP..

basically, if you install 3.X it should be fine...

Offline lelekins

Re: Will my old shop be able to work again?
« Reply #2 on: July 25, 2007, 12:04:41 am »
Oh okie :)  Thanks for replying.
I haven't touched phpmyadmin xD

So, do I go ahead and install SMFShop 3?  I'm really wary of adding any mods after what happened to my board last year xD So I'm sorry If I ask too many questions =S

Will I do a fresh install? (but wouldn't that remove all the credits and items added previously?)
or an upgrade?  :P (I'd have to do a few to catch up)

Just checking  :)

Offline feildmaster

Re: Will my old shop be able to work again?
« Reply #3 on: July 25, 2007, 12:56:37 am »
Fresh  install, it wont replace anything that is already there.

Offline lelekins

Re: Will my old shop be able to work again?
« Reply #4 on: July 25, 2007, 02:05:26 am »
Cool thanks =)

Edit: :o Oh no!!!!
I went to install it - all tests were successful but when I pressed install I got this:

Fatal error: packageinstall() [function.require]: Failed opening required '/home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/Packages/temp/./installScript.php' (include_path='.:/usr/share/pear') in /home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/Sources/Packages.php on line 552

I made sure the temp folder existed before installing, I checked after to find it deleted itself...again. It always does this >_<


Edit again...
I got the shop back, but...it says I'm running an old version  :o Yet I did install 3.0...

Screenie:
http://i78.photobucket.com/albums/j100/Lelekins/shoogarr.jpg

Error log is filling up with these:
8: Undefined index: shop_saved
File: /home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/Themes/default/ShopAdmin.template.php (eval?)
Line: 113

I got one error during installation:
2: opendir(/home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/Packages/temp/shop) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
File: /home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/Sources/Subs-Package.php
Line: 1253

Another edit:
Loads more errors:

http://www.mysite:P.com/forum/index.php?action=shop_cat 
Unable to load the 'main' template.

http://www.mysite:P/forum/index.php?action=shop_cat 
2: call_user_func(ShopCategories) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
File: /home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/index.php
Line: 129

http://www.mysite:P/forum/index.php?action=shop_items_edit 
2: Invalid argument supplied for foreach()
File: /home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/Themes/default/ShopAdmin.template.php (eval?)
Line: 514

And I did lose all the items, member credits etc :S
Although, I'm not too bothered about that anymore, I'm just hoping to get the shop running well :)


Aw no. My guess is that it's using all the old files from when I last had the shop...and the fact that all the dates in ftp are from 2006...guess that confirms it. Oops...

Any advice??  :-[
« Last Edit: July 25, 2007, 05:14:45 am by lelekins »

Offline feildmaster

Re: Will my old shop be able to work again?
« Reply #5 on: July 25, 2007, 11:26:46 am »
lol... never had that happen b4... anyway...

Since u did indeed get everything erased... lets fix the shop problems and errors... go ahead and uninstall, and delete anything that happens to still be there.. *database, shop folder, what not..* then tell me what errors u get after that... (should get quite a few since it might still call for shop stuff even though it doesn't exist...)

Offline lelekins

Re: Will my old shop be able to work again?
« Reply #6 on: July 26, 2007, 06:55:11 am »
Ah okie, I've reinstalled and it seemed to be going good for a while but an error's popped up whilst I was editing the price for the increase karma option:

http://www.mysite:P.com/forum/index.php?action=shop_items_edit;do=edit;id=4 
8: Undefined variable: item_info
File: /home/fhlinux210/g/glitter-graphix.com/user/htdocs/forum/Sources/shop/items/IncreaseKarma.php
Line: 54

Is that anything really bad?

Also, in SmartFTP, I can't add new item images for some reason :( I keep getting
"Transfer failed. Use the Transfer Queue for automatic retries."

Any advice there?
« Last Edit: July 26, 2007, 06:59:01 am by lelekins »

Offline feildmaster

Re: Will my old shop be able to work again?
« Reply #7 on: July 26, 2007, 12:20:27 pm »
for the first question, no it's not a bad error.. It's just pesky to get errors all the time though... ^^ has to do with some bad query call... anyway...

I have never had that problem... Maybe check the folders in the CHMOD and... see if its something to do with folder permissions.. Other than that I don't really now...

Offline lelekins

Re: Will my old shop be able to work again?
« Reply #8 on: July 26, 2007, 10:28:51 pm »
Thanks for all of the help :)
As for the karma problem, is there a way of sorting it? It pops up everytime I make a change to it in admin :P

I googled around last night and figured out my problem to the last bit :)

I found that because the files and folders were created in my browser and not ftp that I basically don't "own" them and have to ask my host to recapture the ownership of those files :)  That also explains a few other issues I've been having with my forum  :P

I wasn't able to move, rename, upload, chmod or even delete the files that were created.

"The problem is not with the use of CHMOD. You cannot CHMOD any file that you do not 'own'.

The problem is with the use (or lack of use) of CHOWN and CHGRP to change the Owner and Group assigned to the file(s) or folder(s) which normally cannot be done via FTP.

As I said previously, contact your hosting provider and request to have all of your files reset to your Unix userID and Group.

Perhaps if you pester them enough about it they'll add a convenient 'Re-capture ownership' button to your hosting control panel like mine has."

Yeah, I sent a ticket to my host, hopefully they'll be able to sort it :)

Offline Daniel15

Re: Will my old shop be able to work again?
« Reply #9 on: July 27, 2007, 08:50:49 pm »
Ok, to fix any problems you're encountering:
1) Make sure all the files are up-to-date (ie. they're all the SMFShop 3.0 files).
2) Make sure the database is up-to-date (when in doubt, grab the installScript.php file from the SMFShop install package, upload it to your forum's directory, and run it).

Hopefully, this should fix any problems, and it will work correctly :)

Quote
8: Undefined variable: item_info
This would probably mean that your item files are up-to-date, but the ShopAdmin.php file isn't. Please check :)

Offline lelekins

Re: Will my old shop be able to work again?
« Reply #10 on: July 27, 2007, 11:50:31 pm »
Hey, thanks very much =)
ShopAdmin.php is up-to-date :) and as far as I can see, so are the others.
About running installScript.php...will that affect anything with the shop? So far my members are using it and have already earned credits and bought items :P Will they lose anything?