Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #257
    Profile photo of Christine
    Christine
    Participant

    I have learned a lesson in the last couple of days. Disable/delete all plug-ins if you move your site and don’t have a clue what you are doing! At least, I assume that will help! I did manage to get wp-supercache working again, that felt like a major achievement.

    However current problem :

    1
    Using the Professional plug-in I am unable to create licences – I create them, click save, and they disappear.

    I get this message

    Warning: array_push() expects parameter 1 to be array, boolean given in *******l/wp-content/plugins/ss-professional/functions.php on line 261

    I did try playing with that line (but have put it back how it was) I can make the warning message disappear but it still will not create the licences. I have tried disabling/deleting and reinstalling plugin.

    As far as I can see Line 261 looks identical in my backups as it does live at the moment.

    Any ideas anyone?

    Images that had licences created previously still have them (extended, standard and editorial) but they (the licences) do not show up in the licensng area, I wonder if they are in the background somewhere and I will have to find and delete them?

    ~
    2
    This message also appeared above the price box in certain circumstances both before and after I broke it

    Warning: Illegal string offset ‘added_price’ in /h******/wp-content/plugins/ss-professional/functions.php on line 779

    http://kerioakimaging.com - trying to reopen
    http://nail-art-at.kerioak.com - Art and Nail Art

    #2839
    Profile photo of ajt
    ajt
    Participant

    Changing domain name probably corrupted licenses info hold in wp_options table. This info contains license url and this url was replaced by new one (this info is hold as some kind of array, where some numeric values are lengths of other fields, so they all have to match each other – changing only one value, as url, without changing others, destroys this data format). You can go to phpmyadmin, find record in table wp_options with option_name ‘ss_licenses’ and delete it. Then you should create all licenses again (those already applied to images should be safe during this process).

    Update:
    Licenses applied to images now also contain new license url, so this info also is corrupted. I don’t know, if applying new licenses would regenerate them.

    Update 2:
    I would try this:
    1. Edit database and delete record (as stated above).
    2. Add new licenses.
    3. Batch edit images, uncheck licenses, then save. It should delete licenses from images.
    4. Batch edit images again and add new licenses.

    #2840
    Profile photo of Christine
    Christine
    Participant

    Thanks ajt, I will try this when I get to the computer and let you know how I get on

    http://kerioakimaging.com - trying to reopen
    http://nail-art-at.kerioak.com - Art and Nail Art

    #2841
    Profile photo of ajt
    ajt
    Participant

    OK, and check all carts, if they are visible in cart manager and in your test account. They also have similar format in database (table wp_usermeta, records with ‘symbiostock_cart’ in field meta_key). Example cart info from my site (field meta_value):

    s:270:”a:4:{s:4:”site”;s:17:”http://ajotte.com”;s:10:”cart_email”;s:14:”ajt@ajotte.com”;s:8:”products”;a:1:{i:1846;a:5:{s:4:”type”;s:3:”jpg”;s:4:”size”;s:1:”2″;s:9:”size_name”;s:6:”medium”;s:5:”price”;s:5:”10.00″;s:8:”discount”;s:1:”0″;}}s:4:”date”;s:19:”2013-09-03 20:37:49″;}”;

    Plugin for replacing domain address (I suppose that you’ve used it) probably changed only addresses. In above example this “http://ajotte.com” has 17 characters, so there is s:17 before it. This value should be changed too. Also s:14:”ajt@ajotte.com” and s:270 at beginning. After changing domain to ajt.com new cart should be

    s:264:”a:4:{s:4:”site”;s:14:”http://ajt.com”;s:10:”cart_email”;s:11:”ajt@ajt.com”;s:8:”products”;a:1:{i:1846;a:5:{s:4:”type”;s:3:”jpg”;s:4:”size”;s:1:”2″;s:9:”size_name”;s:6:”medium”;s:5:”price”;s:5:”10.00″;s:8:”discount”;s:1:”0″;}}s:4:”date”;s:19:”2013-09-03 20:37:49″;}”;

    Now licenses again.

    Example – two licenses created now, are written to wp_options table like here:

    s:359:”a:2:{i:0;a:6:{s:2:”id”;i:1599216;s:4:”type”;s:1:”3″;s:4:”name”;s:17:”Editorial license”;s:3:”url”;s:0:””;s:8:”location”;s:1:”1″;s:6:”action”;s:1:”1″;}i:1;a:7:{s:2:”id”;i:1120299;s:4:”type”;s:1:”0″;s:4:”name”;s:14:”Custom license”;s:3:”url”;s:22:”http://ajotte.com/eula”;s:8:”location”;s:1:”1″;s:6:”action”;s:1:”1″;s:23:”ss_price_apply_to_large”;s:5:”20.00″;}}”;

    I wrote earlier, that you should delete record from table. You can try to fix it, editing lengths. In above example, after replacing ajotte->ajt, it should be:

    s:356:”a:2:{i:0;a:6:{s:2:”id”;i:1599216;s:4:”type”;s:1:”3″;s:4:”name”;s:17:”Editorial license”;s:3:”url”;s:0:””;s:8:”location”;s:1:”1″;s:6:”action”;s:1:”1″;}i:1;a:7:{s:2:”id”;i:1120299;s:4:”type”;s:1:”0″;s:4:”name”;s:14:”Custom license”;s:3:”url”;s:19:”http://ajt.com/eula”;s:8:”location”;s:1:”1″;s:6:”action”;s:1:”1″;s:23:”ss_price_apply_to_large”;s:5:”20.00″;}}”;

    This info it very important to everyone moving site to new domain. It is easy only with no carts and no licenses.

    #2842
    Profile photo of Christine
    Christine
    Participant

    Carts seem to be okay as far as I can tell

    I decided to try out the blogvault migrate option as I was planning to use it as a backup option when my site starts paying for itself. Unfortunately my site was bigger than the trial option allowed for so I spent another 40 odd hours uploading the _rf file. I tried Velvet blue in various permutations (with and without http, and for the server address) but it only made about 7 changes. I did more manually.

    WP super cache was a pain UNTIL I looked at its web page and did what it suggested for updating from WP-Cache to WP-Super Cache – that worked.

    Licences – mine are not called wp, possibly because I had more than one database on other domain? But I found licences on page 69 (of 75)
    says
    ss_licenses s:4:”b:0;”; yes
    so hopefully if I delete this I can then start again?

    http://kerioakimaging.com - trying to reopen
    http://nail-art-at.kerioak.com - Art and Nail Art

    #2843
    Profile photo of ajt
    ajt
    Participant

    Yes, delete this record and try to add licenses.

    #2844
    Profile photo of Christine
    Christine
    Participant

    Thank You for your help – this seems to be working 🙂

    Now off to do them all properly again (and hope the new ones overwrite the existing when I update everything)

    Seeing as I had to upload nearly all my images again it did seem a good time to change domain name, hopefully this will be the last of my “moving” issues, fingers crossed and thanks again

    http://kerioakimaging.com - trying to reopen
    http://nail-art-at.kerioak.com - Art and Nail Art

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.