I am trying to get the next release of pnFlashGames together, but I am having trouble with my upgrade. The table is not being updated with a new column. I have verified that the SQL statement is correct, I can run it straight on the DB and it works fine. No error is returned, the message says "Module Upgraded" even though no change is made. It's almost like the function isn't running at all. Also, when I remove the module, the tables don't get deleted. The function names are correct and they are in the pninit.php file, just like the template module. I'm not sure what is wrong here, but I can't release this next version till I figure out what's going on.
Any ideas?
Thanks.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- Guite responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 05:53 PM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. May
- mesteele101 responded to »How to install Zikula for MSSQL ??? - Part II« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Need help! Tables not being updated or removed!
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Lee,
I think i've spotted the problem straight off (you'll kick yourself). pnversion.php of version 0.5 of the module still says version 0.1. In your upgrade script you attempt to upgrade from versions 0.5 and 0.5.0 but not version 0.1.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
I'll check that one out a bit later. The upgrade one hit me in the face after about 10 seconds. Is the deletion issue in .5, .6 or both?
One additional comment - all the files in archive have some whitespace after the closing ?>. While this doesn't generally cause a problem it's not good practice.
-Mark -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 292
i just checked on that whitespace issue. I removed all the whitespace with a text editor. Apparently, WinSyntax adds a newline at the end of the file. Why it does that I have no idea. Unfortunately, that still didn't make the table udate when I upgraded from .5 to .6. I even tried adding cases for text value oldversions like this:
case '0.1':
case '0.5':
case 0.1:
case 0.5:
Guess I'll have to switch editors now. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Lee,
I'll take a full look through the module later today - i'd spotted the version problem before even installing the module.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Lee,
A close examination shows the problem to be related to the lineThe value 0.5.0 is not numeric and thus needs to be quoted i.e.Code
case 0.5.0I removed this line (and added in 0.1) and the upgrade proceded fine.Code
case '0.5.0':
I picked this up by putting in a direct URL to the pninit file (http://yoursite.com/modules/pnFlashGames/pninit.php). A working file should show as a Blank Page. I got a parse error and line number thus narrowing the search.
This also fixes the delete tables issue as well.
-Mark -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Lee,
Thanks - pleased to be of assistance. I meant to say earlier nice module. I think I might be using it myself.
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 292
Great, well I just posted 0.6! I tested it as a new install and an upgrade from 0.5 and everything is working very well. I also went ahead and bundled the six games at http://5ss.net into the install now, so you don't have to worry about not having any games.
Thanks again for the help, Mark. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 292
By the way, if you would like to download 0.6, you can do so at http://noc.postnuke.com/projects/pnflashgames
Thanks!
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
