Advertisement:

Author Topic: Admin Panel fault? "you need to upgrade Osclass for it to work correctly"  (Read 2679 times)

DepotMart

  • Newbie
  • *
  • Posts: 11
I conducted the auto upgrade yesterday (12 hours ago) and have not had control over my admin panel since.  My control panel now only states "You have uploaded a new version of Osclass, you need to upgrade Osclass for it to work correctly" and allows no other serious functions, but to press the upgrade button.  I still have the ability to toggle off/on the maintanence mode, but that is all.  I noticed previously that with the 3.1 it stated it might take a while, but what is a while? ...days and why?  I am lost at trying to figure it out.  I am not a programer, but I love this program and finally got people to start coming to my site.  It seems like it is stuck or something?  I used the auto-mode to upgrade.  In a previous post someone taked about re-starting it, which I did a few times, but to no avail?  At the host (Fatcow.com), it seems to have changed dates of the files correctly, but now panel sits without control; and " You have uploaded a new version of Osclass, you need to upgrade Osclass for it to work correctly"    What must I do?   I promoted my site locally with flyers and all, but now I have no control through the panel with this 3.1 upgrade - I kinda wish I didn't upgrade now!   I feel I made an error somehow?  I had the previous version 3.0.2.
« Last Edit: March 03, 2013, 04:51:05 pm by DepotMart »

DepotMart

  • Newbie
  • *
  • Posts: 11
I think I fixed it myself...  YEA!


Go to your SQL database (Fatcow listed as Beta) but using phpMyAdmin

Go to your table t_preference

Then, look for a row with s_name = version change the s_value to 310  Using BROWSE FUNTION

Log into your admin panel, it should not ask for an update.    Found this fix...  I truly hope this is the correct fix...  It seems to work however?

DepotMart

  • Newbie
  • *
  • Posts: 11
I can see the Admin Panel, but "Page not found... moved, renamed...." anytime someone posts and ad.  It shows that the listing was placed (testing account on my own site), but it has no page.  Http error page not found.  I think I am going to trash it all and look for an older version. 

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Hi DepotMart,

Osclass needs to make the following changes to continue (taken from upgrade-funcs.php)

Code: [Select]
    if(osc_version() < 310) {
        //$comm->query(sprintf("ALTER TABLE  %st_alerts ADD  `pk_i_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY", DB_TABLE_PREFIX));
        $comm->query(sprintf("ALTER TABLE  %st_pages ADD  `s_meta` TEXT NULL", DB_TABLE_PREFIX));
        $comm->query(sprintf("ALTER TABLE  %st_pages ADD  `b_link` TINYINT(1) NOT NULL DEFAULT 1", DB_TABLE_PREFIX));
        $comm->query(sprintf("UPDATE %st_alerts SET dt_date = '%s' ", DB_TABLE_PREFIX, date("Y-m-d H:i:s")));

        // remove files moved to controller folder
        @unlink(osc_base_path() . 'ajax.php');
        @unlink(osc_base_path() . 'contact.php');
        @unlink(osc_base_path() . 'custom.php');
        @unlink(osc_base_path() . 'item.php');
        @unlink(osc_base_path() . 'language.php');
        @unlink(osc_base_path() . 'login.php');
        @unlink(osc_base_path() . 'main.php');
        @unlink(osc_base_path() . 'page.php');
        @unlink(osc_base_path() . 'register.php');
        @unlink(osc_base_path() . 'search.php');
        @unlink(osc_base_path() . 'user-non-secure.php');
        @unlink(osc_base_path() . 'user.php');
        @unlink(osc_base_path() . 'readme.php');

        @unlink(osc_lib_path() . 'osclass/plugins.php');
        @unlink(osc_lib_path() . 'osclass/feeds.php');

        $comm->query(sprintf('UPDATE %st_user t, (SELECT pk_i_id FROM %st_user) t1 SET t.s_username = t1.pk_i_id WHERE t.pk_i_id = t1.pk_i_id', DB_TABLE_PREFIX, DB_TABLE_PREFIX));
        osc_set_preference('username_blacklist', 'admin,user', 'osclass', 'STRING');
        osc_set_preference('rewrite_user_change_username', 'username/change');
        osc_set_preference('csrf_name', 'CSRF'.mt_rand(0,mt_getrandmax()));

        @mkdir(CONTENT_PATH.'uploads/page-images');

    }

It also has to made some changes to the database prior to this, not sure why it failed.

So, go to your phpMyAdmin or whatever you use to control your database, and please, run this SQL files

Code: [Select]
ALTER TABLE  oc_t_alerts ADD  `pk_i_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY;
ALTER TABLE  oc_t_pages ADD  `s_meta` TEXT NULL;
ALTER TABLE  oc_t_pages ADD  `b_link` TINYINT(1) NOT NULL DEFAULT 1;
UPDATE oc_t_alerts SET dt_date = 'NOW()';
UPDATE oc_t_user t, (SELECT pk_i_id FROM oc_t_user) t1 SET t.s_username = t1.pk_i_id WHERE t.pk_i_id = t1.pk_i_id;

Do it one by one and tell us if something failed (First may fail, but the rest should be run smoothly)

Thanks and sorry for any inconvenience

DepotMart

  • Newbie
  • *
  • Posts: 11
Daniel – Thank you for the reply.  I tried a few things over the weekend in ELKO, Nevada, USA  to include uploading the new 3.1 version to a new site as a new install and it worked except for pictures.  It would do all things correctly except that it would not allow pictures.  It would give the option to place pictures, however would not show them in the ad.  I played with it so much that fatcowmysql.com was getting confused and both sites (depotmart and another) were getting blurred?  I tried loading the old version 3.0.2, but it started failing as well.   After 16 hours…  I dumped everything this morning and will start fresh with www.depotmart.com with only the 3.1 version.  I think I will still have the picture issue, but will work with you over that in a few days (if you please.)   The program worked great (for me) before the upgrade, but now I am lost.  I printed the user list as to email the users about my failure and let them know when I get it fixed someday. 
What do you guys charge to make the new version work, or upload it to my server and check it or ?      Meaning…  if I gave you the user ids, and passwords to my fatcow (host) to install 3.1, repair the bugs and make it work?  I have put some time and money into a classified section for our northern area of state and now it is on hold?  Just frustrated….   I have a normal day job, and this stuff is almost out of my league...  well, actually it is pretty much... 

DepotMart

  • Newbie
  • *
  • Posts: 11
An honest quick question...  if I email you the host, user,id, mysql server host, etc...  would you use my depotmart.com as a experiment, play with it, etc...  I like your software when it worked, but it is faulted.  I noticed others (lowcountryshopper) didn't get his to work-now when checking his site (he posted failure yesterday.)  Or, do you charge?  Some installation fee perhaps?  I really need more help than I thought with this osclass as I removed it all from my host because I could not get it to function correctly since the upgrade?

kcguy

  • Full Member
  • ***
  • Posts: 103
An honest quick question...  if I email you the host, user,id, mysql server host, etc...  would you use my depotmart.com as a experiment, play with it, etc...  I like your software when it worked, but it is faulted.  I noticed others (lowcountryshopper) didn't get his to work-now when checking his site (he posted failure yesterday.)  Or, do you charge?  Some installation fee perhaps?  I really need more help than I thought with this osclass as I removed it all from my host because I could not get it to function correctly since the upgrade?


It seems that this new release has lots of bugs that they are working on and trying to get fixed. I would not have upgraded myself if I had of known.

Guess this will be the last time I jump off the bridge first.    :o :o :o :o  I tried fixing my wheel when it was not broke...

O well lesson learned and now we are at the mercy of the devs, or go back to a more stable version which I am thinking of doing until they fix the bugs....

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
It seems that this new release has lots of bugs that they are working on and trying to get fixed. I would not have upgraded myself if I had of known.

Guess this will be the last time I jump off the bridge first.    :o :o :o :o  I tried fixing my wheel when it was not broke...

O well lesson learned and now we are at the mercy of the devs, or go back to a more stable version which I am thinking of doing until they fix the bugs....

Again, I'm sorry, but at the moment, if you're having problem I only could suggest to roll back and use version 3.0.2 For me, this is a failure of my job. Remember ALWAYS to make a backup before upgrading osclass. I'm trying to fix all the issues as soon as possible