Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author AntoineH

    (@antoineh)

    I’ll look into it. Can you tell me what your upgrade path was? First install untill v1.3.1.

    Thread Starter sjonas

    (@sjonas)

    1.2 -> 1.3 -> 1.31

    Using WordPress 3.3.2.

    Plugin Author AntoineH

    (@antoineh)

    Weird. I just followed the exact same path and everything works fine. The only thing I can think of is that there is a problem with the new pool_wp_bonusquestions_type table.

    You can try the following SQL statements to correct this. If you allready have multiple choice or photo questions in your database, you have to manually correct them, because this script will reset them to text questions and delete the options and image.

    DROP TABLE IF EXISTS pool_wp_bonusquestions_type;
    
    CREATE TABLE IF NOT EXISTS pool_wp_bonusquestions_type (
      question_id int(10) unsigned NOT NULL,
      type int(10) unsigned NOT NULL,
      options text NOT NULL,
      image text NOT NULL,
      PRIMARY KEY (question_id)
    ) DEFAULT CHARSET=latin1;
    
    INSERT INTO pool_wp_bonusquestions_type ( question_id, type, options, image )
    SELECT q.id, 1, '', ''
    FROM pool_wp_bonusquestions q
    LEFT OUTER JOIN pool_wp_bonusquestions_type qt
    	ON ( qt.question_id = q.id )
    WHERE qt.type IS NULL

    p.s. I did find a bug in the deactivation of the plugin. The new pool_wp_bonusquestion_type table was not removed from the database. I fixed this in v1.3.2.

    Thread Starter sjonas

    (@sjonas)

    Hi.
    It didn’t worked.
    I also uninstalled Football Pool plugin and dropped any remaining table.
    I reeinstalled Football Pool plugin, version 1.3.1, added some questions and none of them showed at the back and frontend. But they are in fact at the respective table on the DB, they just don’t show up.

    Plugin Author AntoineH

    (@antoineh)

    I don’t understand why the questions are in the database, but are not shown in the back-end (or front-end).

    The plugin uses the following query to get the questions for the back-end. It has an inner join with the ‘pool_wp_bonusquestions_type’ table so my first guess was that this table was the cause of the problem. If the questions are not also in that table, the query result will be empty.

    SELECT
    	q.id, q.question, q.answer, q.points, UNIX_TIMESTAMP(q.answerBeforeDate) AS questionDate,
    	DATE_FORMAT(q.scoreDate,'%Y-%m-%d %H:%i') AS scoreDate,
    	DATE_FORMAT(q.answerBeforeDate,'%Y-%m-%d %H:%i') AS answerBeforeDate, q.matchNr,
    	qt.type, qt.options, qt.image
    FROM pool_wp_bonusquestions q
    INNER JOIN pool_wp_bonusquestions_type qt
    	ON ( q.id = qt.question_id )
    ORDER BY q.answerBeforeDate ASC

    Can you provide a dump of your pool_wp_bonusquestions and pool_wp_bonusquestions_type tables?

    Beste AntioneH,

    Excuses dat dit hier wordt gepost, maar ik kan op de één of andere manier geen nieuw topic aanmaken. Wij van FCGroningenBlog.nl zijn zeer enthousiast over de pool! We hebben hem dan ook geïnstalleerd en geactiveerd.

    WE hebben echter één (groot) probleempje. Bij de pool-stand (http://bit.ly/J2mPJL) heb ik zelf een inleidende tekst ingevoegd, waarna de stand volgt. Echter zit hiertussen een groot wit vlak.

    Bij iedere gebruikers die zich aanmeldt, komt er één witregel bij. Je kan je voorstellen als er straks 20 mensen meedoen, de stand hélemaal onderaan staat. Wij begrijpen er helemaal niets van en kunnen het niet oplossen.

    Kan jij ons helpen?

    These are English language forums. Please use English.

    Where is Dutch language forum of this plugin?

    Plugin Author AntoineH

    (@antoineh)

    Martin, I’m not using the Dutch forums. So, let’s continue in English 😉

    It seems that for every user an extra paragraph-tag and break is inserted inside the table. Quote from your source:

    <tr class="even">
    <td style="width:3em; text-align: right;">1.</td>
    <td><a href="http://fcgroningenblog.nl/user?user=20">19manuel72</a></td>
    <td>0</td>
    <p>									<!-- full: 0 || toto: 0 --><br />
    									</tr>
    <tr class="odd">
    <td style="width:3em; text-align: right;">2.</td>
    <td><a href="http://fcgroningenblog.nl/user?user=16">Johan</a></td>
    <td>0</td>
    <p>									<!-- full: 0 || toto: 0 --><br />

    Those tags are not in the original code. Did you change the PHP code? If not, then this might be a conflict with another plugin. Try disabling them one by one to see which one is causing the trouble.

    Thread Starter sjonas

    (@sjonas)

    Can you provide a dump of your pool_wp_bonusquestions and pool_wp_bonusquestions_type tables?

    The problem has to do with the prefixs.
    I’m using the prefix ek for this wordpress installation.

    All the football pool tables are named pool_ek_ except pool_wp_bonusquestions_type. I have move the table to pool_ek_bonusquestions_type but no questions were shown. Only after I have inserted a new question did that question appeared on the front and back end.

    Plugin Author AntoineH

    (@antoineh)

    Thanks for that! I forgot to prefix this table in the install-script.

    I will release a new version today with that problem solved. So other users will not have this problem if they choose a custom prefix for their WP install.

    Thread Starter sjonas

    (@sjonas)

    You are welcome, glad I could help.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: Football Pool] Questions not saved after update 1.3.1’ is closed to new replies.