Thread: SQL patch error

Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default SQL patch error

    When isntalling a sql patch (from DPS payment plugin) I get this error report


    Failed: 2
    ERROR: Cannot create table dps_pxpay because it already exists
    ERROR: Cannot CHANGE column because it does not exist.
    Note: 2 statements ignored. See "upgrade_exceptions" table for additional details.

    does anyone know what this means and will it effect the plugin?

    Also I dont know what this next step means??


    3.3 Due to the extremly long redirect URLs generated by DPS, the size of the
    column 'last_page_url' in the zen-cart table 'whos_online' needs to be extended
    from 255 to at least 2048.

    Thanks in advance

  2. #2
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: SQL patch error

    FYI issue resolved, martin from mixedmatter.co.nz the coder of the plugin resolved the issue by getting me to use phpMyAdmin and installing the script from there

  3. #3
    Join Date
    Sep 2004
    Location
    Murfreesboro, TN
    Posts
    588
    Plugin Contributions
    0

    Default Re: SQL patch error

    Thanks for posting the solution so others can learn from this.

    Also did you try using the install sql patches under tools AND open the sql file in question and copy and paste the contents into the sql patch tool instead of trying to browse to a file and upload. Browsing to the file does not always work, and the copy of the file contents and pasing in the box and submitting has worked every time for me. Just an FYI for next time, and if you do a lot of modding your zc sites, trust me, there will be many more times.

    Sincerely,

    0be1
    "Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley

  4. #4
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: SQL patch error

    Quote Originally Posted by 0be1 View Post
    Thanks for posting the solution so others can learn from this.

    Also did you try using the install sql patches under tools AND open the sql file in question and copy and paste the contents into the sql patch tool instead of trying to browse to a file and upload. Browsing to the file does not always work, and the copy of the file contents and pasing in the box and submitting has worked every time for me. Just an FYI for next time, and if you do a lot of modding your zc sites, trust me, there will be many more times.

    Sincerely,

    0be1
    thank for the help, to be specific this line (below)

    ALTER TABLE whos_online MODIFY last_page_url varchar(2048) NOT NULL default '';

    didnt work using the tools, SQL patches either by pasting or uploading the file, all of the other commands worked, that line had to be copied and pasted in the phpMyAdmin script installer, Martin mentioned why but it went over my head :) he said he will fix the plugin for others with that issue.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SQL patch error

    Quote Originally Posted by bishop999 View Post
    Also I dont know what this next step means??


    3.3 Due to the extremly long redirect URLs generated by DPS, the size of the
    column 'last_page_url' in the zen-cart table 'whos_online' needs to be extended
    from 255 to at least 2048.
    FYI ...
    As of Zen Cart v1.3.8, only the first 254 characters are saved to the database. Everything after that is chopped off (truncated) before insertion. Thus extending it to a longer value is no longer useful or required.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Error installing unwishlist SQL patch...
    By doooomed in forum Customization from the Admin
    Replies: 2
    Last Post: 27 Dec 2012, 02:29 PM
  2. v139h DB/SQL Error when using SQL Patch for Add Pages More Info Sidebox addon
    By maperr55 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 5 Mar 2012, 09:32 PM
  3. Payment Module Error (SQL Patch Problem)
    By tmcashan in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 12 Apr 2007, 11:00 AM
  4. SQL Patch Error
    By arcanesanctuary in forum General Questions
    Replies: 6
    Last Post: 23 Jan 2007, 11:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg