g2_node doesn't exist error messages after install
| Project: | G2 Glossary |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
I have installed you latest DV version on my D6.3 and I have updated my database. I did make the first entry and I got this error message
* user warning: Table 'peyvnam_kurdishacademy.g2_node' doesn't exist query: SELECT * FROM g2_node WHERE nid = 255 in ......./kurdishacademy.org/sites/all/modules/g2/g2.module on line 1201.
* user warning: Table 'peyvnam_kurdishacademy.g2_referer' doesn't exist query: UPDATE g2_referer SET incoming = incoming + 1 WHERE nid = 255 AND referer = '?q=g2/initial/p' in ......./kurdishacademy.org/sites/all/modules/g2/g2.module on line 1757.
* user warning: Table 'peyvnam_kurdishacademy.g2_referer' doesn't exist query: UPDATE g2_referer SET incoming = incoming + 1 WHERE nid = 255 AND referer = '?q=g2/initial/p' in ......./kurdishacademy.org/sites/all/modules/g2/g2.module on line 1757.
http://kurdishacademy.org/?q=node/255
Is there any way tp fix this or I should wait for an stable version?

#1
Hi,
Could you please confirm which version of the module you are usig (the $Id string in g2.module).
Also, see http://drupal.org/node/255396 as it will probably help with that problem.
Regrettably, although the new production-to-be version finished, I can not yet publish it due to review reasons.
#2
I have installed you 6 series Div version provided on the project page. (6.x-1.x-dev)
#3
Then please apply the patch suggested at http://drupal.org/node/255396
It should fix the issue you are encountering.
#4
I have never done this before and the instruction scared me off :(
This is a live site on hosting service company. I am not so use where the patch should be executed.
It is difficult to implement the patch in you Dev version and allow user to have new Dev pack with patch included?
#5
You can do it by hand : I assume you don't have command line access anyway.
- remove the g2.schema file
- copy the patch file somewhere
- in that copy...
- remove all lines NOT beginning with a "+"
- remove the "+" at the beginning of all the remaining lines
- paste the remaining code into g2.install
- using devel.module, click on reinstall module, then g2.module
This should install the updated schema and remove your problem.
Note that the g2_referer functions will be going away in the future D6 production version : there are better alternatives elsewhere for referrer tracking, so there is no point in keeping them.
#6
Thank you for your instruction but Before I mess up my live site, can I ask you when do you think you stable version will be available?
#7
I've been thinking it would be available in the next 30 days since april, so I don't dare guess how much longer it will take, so you'd better fix your site in the meantime.
#8
I'm getting the same errors with G2 Glossary 6.x-1.x-dev (2007-Aug-25). Know how difficult it is to carve out the time. Best of the luck!
#9
Did you apply the patch I suggested ?
#10
It looked interesting, but I needed something that was a bit more stable for this project so went back to the old glossary. Sorry I didn't try the patch when the module was installed.
#11
OK, then changing status.
#12
What a patch does? Can someone patch the Module and repack it to become a error free module? Is there any way to integrate the patch in the module pack?
I read the comment on devel.module which has messed up whole site and it kind of scared me off to do the patch and I need this module so much,
Fgm, I am not a programmer but a good tester, what can I do to help you fixing this module?
#13
You need to test the patch : it won't be applied to create a new version until it has received enough testing.
#14
Many people like me are not so comfortable with this patch process. If the package is no easy to use then I am afraid there will not be much testing and feedback.
#15
The Patch gives following error
H:\apache2triad\htdocs\GFL\modules\g2>patch g2.schema g2patch
patching file g2.schema
Hunk #1 FAILED at 11.
Hunk #2 FAILED at 100.
2 out of 2 hunks FAILED -- saving rejects to file g2.schema.rej
patching file g2.schema
used on g2-6x.x-1.x-dev
#16
Since there no longer exists a .schema file, you can ignore the rejects.
#17
The patch worked for me.
#18
This is a duplicate of http://drupal.org/node/255396
#19