HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


ocGiftgiver - Comments

Login / Search

 [ Join | More ]
 

ocGiftgiver by Kamen Blaginov

Downloads: 552
Added: 24 May 2011
Rating:
Provides the ability for members to purchase a wide variety of configurable gifts and to send them to other members or even to send them themselves. The gifts are configurable by the admin section – gift title (name), gift image, gift price (in points). When a gift is sent to a member it creates a personal topic that describes the gift. Also it places the gift in the list of gifts received by the member in the profile section. Gifts also could be sent an…

Previous edited gift inventory wiped out

Avatar
Hello,

I updated ocGifts to this version 7 yesterday, and now see that the gift inventory display has reverted back to the original default list.
I had originally spent a fair amount of time removing gifts I didn't want to keep, and uploading new gifts.
I see that my uploaded gift files are still on the server.

Do i have to manually edit the inventory list all over again, or is there a quicker way to fix this?

Avatar
Hello again,

I also noticed that all the gifts given by members to each other so far, are no longer showing on their profile page.

Avatar
Hello,

I'm afraid reinstalling an addon on top of an existing installation will delete then recreate the addons database structure. This is an oversight on our part, we will correct it in 7.1.1.

I hope you have a backup of your ocgifts table, as if you do you can just restore this. If you have a complete SQL dump you can open it in a text editor and find where the "INSERT INTO" queries start for that table and get copy and paste them into a separate file, which you would then import into phpMyAdmin. I am happy to do this for you for no charge, given the inconvenience of this bug.

Avatar
Since I don't have experience doing this kind of thing and it would take awhile to figure out myself, I'll take up your offer, thank you very much.


Last edit: by Chris Graham

Avatar
Hello Rishi,

I've restored the "gifts", "member_gifts" and "ocgifts" tables from the file you've posted. This should do the trick, but since I'm not familiar with the changes you've made I'd appreciate if you could let us know if this has solved the issue. Note that I took a full database backup before restoring the old tables.

Thanks,
ChrisW


Last edit: by Chris Graham

Avatar
Hello Chris,

Thank you very much. All the gifts look back to the way I had them before. The only difference I notice is actually elsewhere, in the 'side_recent_points' block that I had installed a few days ago. The reason ('For') column disappeared for members given points before you restored the tables. (though it appears for a new point gift test I just did now). Can that table be easily restored?

Also, I think it would be good to delete the database backup attachment above when you're done, since it appears to be publicly downloadable.

Thank you

Avatar
Hello Rishi, apologies for that small breakage. I was so focused on restricting myself to the gift tables, I neglected to update the translation strings! I've transferred these back to the site from the backup I made and the block's showing up with the correct reasons on the homepage.

I've also removed the database backup files from the server now, but I've kept a copy on my computer here in case it comes in handy in the future.

Thanks,
ChrisW

Avatar
Thank you very much Chris for updating the translation strings.

Sorry for not being clear, I actually meant it would probably be good to delete the database backup file  I had attached above in this discussion forum.
Thank you

Avatar
Rishi-

Try editing your post to remove the file. I think that you should be able to remove the attachment.

Bob

Avatar
I have just done this.

Avatar
I'm sorry, I had assumed I couldn't edit these posts since I can't edit a post in a support ticket.
Thanks again

Avatar
Sorry, but cant seem to be able to install this ocgiftgiver on a brand new test site 7.1.4

Point store is installed and working. I checked the DB for missing Field "category" and default value, but cannot evaluate other than that it is present.

Here is the stack trace for the error that occur during installation:

Expand: stack trace stack trace




 

Avatar
Whoop. Fixed version uploaded.

Avatar

Chris Graham said

Whoop. Fixed version uploaded.

Working Fine Now!
Thanks! :)

Avatar
Hi, I'm trying to open gifts from admin menu and get the following error…
/adminzone/pages/modules_custom/admin_ocgifts.php on line 172


Critical error - bailing out
This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP ERROR [1] Call to undefined function get_page_title() in adminzone/pages/modules_custom/admin_ocgifts.php on line 172 (version: 9-beta2, PHP version: 5.3.13, URL: /adminzone/index.php?page=admin_ocgifts)
Stack trace…

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 693
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP ERROR [1] Call to undefined function get_page_title() in adminzone/pages/modules_custom/admin_ocgifts.php on line 172 (version: 9-beta2, PHP version: 5.3.13, URL: /adminzone/index.php?page=admin_ocgifts)', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 1011
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP ERROR [1] Call to undefined function get_page_title() in adminzone/pages/modules_custom/admin_ocgifts.php on line 172', )

File -> '/home/rbcjhubc/public_html/sources/failure.php'
Line -> 220
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP ERROR [1] Call to undefined function get_page_title() in adminzone/pages/modules_custom/admin_ocgifts.php on line 172', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 874
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'error', 1 => 1, 2 => 'Call to undefined function get_page_title()', 3 => 'adminzone/pages/modules_custom/admin_ocgifts.php', 4 => 172, )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
Line -> 810
Function -> 'ocportal_error_handler'
Args -> array ( 0 => 1, 1 => 'Call to undefined function get_page_title()', 2 => '/home/rbcjhubc/public_html/adminzone/pages/modules_custom/a
dmin_ocgifts.php', 3 => 172, )

Function -> 'catch_fatal_errors'
Args -> array ( )
Any idea?
Avatar
You're on a v9 beta but you installed a v8 addon.
Avatar
Talk about blind, I didn't even realize…what a gomper…
Thanks for help
:)
Any updates as to when version 9 addons become available, any speculations???
Avatar
They are in github, but not published. It shouldn't be many weeks until they are published properly.




1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: