• Resolved thehermitvi

    (@thehermitvi)


    To start with let me say this is a WPMU install and I know you don’t support that.

    I am just setting up the MU site and I figured I would give your plugin a test on a MU 2.7 site to see what happened.

    I didn’t get too far I uploaded the plugin and when I went to activate it I got the following error.

    Error activating eshop/eshop.php for blog id=24:
    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/xxxxxx/public_html/wp-admin/admin-header.php:17) in /home/xxxxxx/public_html/wp-content/plugins/eshop/eshop.php on line 33

    I was wondering if you had a quick suggestions as to where to start to look for a fix for this?

    I appreciate anything you can throw my way.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Anonymous User

    (@anonymized-3085)

    I do – sort of. I wasn’t able to support WPMU early on because I couldn’t get it to run anywhere – but now have a local copy I can play with. – but presently I haven’t upgraded to the latest version.

    Anyway currently you have:

    if(!isset($_SESSION['shopcart'.$blog_id])) {
      session_start();
      $setsession=$_SESSION['shopcart'.$blog_id];
    }

    in eshop.php, try changing it to:

    if(!isset($_SESSION)) {
      session_start();
    }

    and let me know if that works.

    Thread Starter thehermitvi

    (@thehermitvi)

    Thanks for the response.

    I changed the code and I still get the same error. All the pages and I believe all the database tables are created so I will see if it is working even with the error and I will let you know later today.

    Anonymous User

    (@anonymized-3085)

    Please, because I may have another solution that should work better.

    Thread Starter thehermitvi

    (@thehermitvi)

    It seems to be working fine except for the error that only occurs when you first activate it.

    I should say it works fine once I went in and entered the US Virgin Islands as a country because I couldn’t test the purchase until I put it in. (hint hint ?? ) but upload works, sales work, I have to look at the actual setting for the information form because it never gave me states to choose from when I chose US as a country I was still in the UK but other than that it works fine.

    Anonymous User

    (@anonymized-3085)

    try new version see if it helps.

    edit:

    Sorry that was a quick reply – US Virgin Islands – wasn’t in the original Paypal countries list – so I might not add that as a default.

    The other errors you were experiencing may be because of the directory creation – I’ve moved over to better handling for that, so hopefully that will fix everything. If you’ve only just started you may be better off uninstalling eShop and then activate a fresh version.

    Thread Starter thehermitvi

    (@thehermitvi)

    I took it out did a fresh install (added the VI US Virgin Islands to the install.php file) created a new blog. Activated eShop no error.

    Uploaded a product and went through a purchase, download and all worked fine.

    Still didn’t have the change to the state codes when I selected US as country or to territories when I picked CA. Is this supposed to be an Ajax call when you pick the country or does it work on the IP address?

    Being in the often forgotten Virgin Islands my IP does some weird things, some times I am US some times Canadian some times British but this isn’t a major problem because most of the products sold will be downloads and the address isn’t that important.

    But state or territory selection is the only thing that isn’t working perfectly now and I am sure I can tweak that to work.

    I appreciate your quick responses and getting rid of that error.

    Thread Starter thehermitvi

    (@thehermitvi)

    Just to let you know the Donation that just came from The Hermit Enterprises through PayPal is from the US Virgin Islands ??

    I couldn’t resist I had to add that.

    Anonymous User

    (@anonymized-3085)

    LOL and thank you!

    I’ll have to do a video about the shipping pages at some point – though obviously it takes a while – and thats if I can find the time!

    You can either have shipping set per country, or per ‘state/county/province’.

    So if you are in the US and wish to only ship to US you would use the ‘state/..’. You then navigate to the ‘state/..’ page and choose which list you want to use, be it US States, Canadian provinces, UK counties or whatever (obviously in this case it would be US States). Then submit that form.

    To change, edit or add, states you must scroll to the bottom of the page and use that submit button to save any changes.

    All the state list does is to populate the ‘state/county…’ list in the checkout (and provide you with the zones). It does not change depending on country selected – though that might be a bit of nice javascript to try and add at some point.

    Hope that’s clear.

    Thread Starter thehermitvi

    (@thehermitvi)

    Just to let you know I tweaked your checkout code so they have all the options on the checkout. This is what I put:

    $List=$wpdb->get_results("SELECT * FROM $table ORDER BY list,stateName",ARRAY_A);
    		if(sizeof($List)>0){
    			$echo .='<label for="state">'.__('State/County/Province','eshop').' '.$sreqd.'<br />
    			  <select class="med pointer" name="state" id="state">';
    			foreach($List as $key=>$value){
    				$k=$value['code'];
    				$v=$value['stateName'];
    				$l=$value['list'];
    				$stateList[$k]=$l." - ".$v;

    This way all options are shown and the country code proceeds the state/county/province. I want to include everybody

    Anonymous User

    (@anonymized-3085)

    Ok that looks like it could be useful – I’ll add an option to display all. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: eShop] Session Error’ is closed to new replies.