Advertisement:

Author Topic: 2.4.0 upgrade hangs  (Read 2474 times)

codeinacan

  • Newbie
  • *
  • Posts: 18
2.4.0 upgrade hangs
« on: May 10, 2012, 05:36:11 am »
url (oc-admin/index.php?page=upgrade&confirm=true) to run, upgrade hangs on start page in admin desktop, upgrade from prior version. Just uploaded files to server, went to admin and got the screen i posted here the image. just hangs there is no progress. Tried to run (oc-includes/osclass/upgrade-funcs.php) as with prior versions but get the following "ABS_PATH is not loaded. Direct access is not allowed"
any idea"s?

codeinacan

  • Newbie
  • *
  • Posts: 18
Re: 2.4.0 upgrade hangs
« Reply #1 on: May 16, 2012, 06:23:37 am »
Cannot find this problem on OSC forum yet. Thats why I posted it, I am not new to this software at all! Dev(s) why does this error develop when I upgrade?

Is there not a hero amongst us? or is this a pay for question & help issue? guidance......

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: 2.4.0 upgrade hangs
« Reply #2 on: May 16, 2012, 06:46:51 am »
Hi codeinacan,

Check your error log as I would say that it is giving you an error.

Jay

codeinacan

  • Newbie
  • *
  • Posts: 18
Re: 2.4.0 upgrade hangs
« Reply #3 on: May 16, 2012, 04:28:31 pm »
Hi codeinacan,

Check your error log as I would say that it is giving you an error.

Jay

Thanks for the reply,

I attached my /admin/error_ log file error.
PHP Fatal error:  Call to a member function result() on a non-object in /public_html/mywebsite/oc-includes/osclass/upgrade-funcs.php on line 318


Thanks again.
codeinacan
« Last Edit: May 20, 2012, 07:47:13 am by codeinacan »

lanister

  • Newbie
  • *
  • Posts: 23
Re: 2.4.0 upgrade hangs
« Reply #4 on: May 21, 2012, 10:35:13 am »
I'm getting the same error. See attached. Does anybody have a solution for this yet?

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: 2.4.0 upgrade hangs
« Reply #5 on: May 21, 2012, 12:56:03 pm »
Hi all,

For fix this issue updating osclass, you need to modify upgrade-funcs.php (oc-includes/osclass/upgrade-funcs.php)

upgrade-funcs.php l.317

$rs = $comm->query("SELECT * FROM ".DB_TABLE_PREFIX."t_country WHERE fk_c_locale_code = '".osc_language()."'");
change to
$rs = $comm->query("SELECT * FROM ".DB_TABLE_PREFIX."t_country GROUP BY pk_c_code");

Try to upgrade with this change, you shouldn't have problems.

Regards