Osclass forums
Support forums => old => Topic started by: _CONEJO on December 19, 2012, 11:29:43 am
-
Possible upgrade troubles and how to fix it.
Unzip failed
Posible reasons :
- Some folders has not the right permissions -> Manual upgrade (http://doc.osclass.org/Updating_Osclass (http://doc.osclass.org/Updating_Osclass))
- ROOT_FOLDER/oc-content/downloads/oc-temp folder is not present ( only on fresh installations of 3.3.X versions) -> create oc-temp folder and try to upgrade via oc-admin -> Tools -> Upgrade if the problem persist upgrade manually (http://doc.osclass.org/Updating_Osclass (http://doc.osclass.org/Updating_Osclass))
Parse error: syntax error, unexpected ':' … in LogDatabase
- recent bug discover, fixed on osclass 3.4.1
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM … in Object_Cache_Factory.php
- recent bug discover, fixed on osclass 3.4.1
Auto-upgrade - fails on 3.3.X
- due to changes in the upgrade process will fail, but don’t worry everything it’s fine, but your site may be in maintenance mode. Please upgrade via admin panel or manually, if upgrade is successful maintenance mode will be disabled.
- If your site remains in maintenance mode you can remove the lock at oc-admin -> Tools -> Maintenance mode
-
This is what I see when I try to go to my site and to the admin area.
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/myserver/public_html/mydomain.net/oc-includes/osclass/core/Object_Cache_Factory.php on line 28
And your stupid captcha is driving me batty!
-
Here is the actual code. I copied from my file manager in cPanel.
<?php
class Object_Cache_Factory {
private static $instance = null;
public static function newInstance()
{
if( self::$instance == null ) {
self::$instance = self::getCache();
}
return self::$instance;
}
public static function getCache() {
if(self::$instance == null) {
$cache = 'default';
if( defined('OSC_CACHE') ) {
$cache = OSC_CACHE;
}
$cache_class = 'Object_Cache_'.$cache;
$file = dirname(__FILE__) . '/caches/' . $cache_class. '.php';
if(strpos($file, '../')===false && file_exists($file)) {
require_once $file;
if(class_exists($cache_class)) {
// all correct ?
if($cache_class::is_supported()) {
self::$instance = new $cache_class();
} else {
$file = dirname(__FILE__) . '/caches/Object_Cache_default.php';
require_once $file;
self::$instance = new Object_Cache_default();
error_log('Cache '. $cache .' NOT SUPPORTED - loaded Object_Cache_default cache');
}
return self::$instance;
}
}
throw new Exception('Unkwon cache');
} else {
return self::$instance;
}
}
}
-
Hi aledia,
please provide to Osclass dev team what PHP version are you running. Also, php.ini settings may help in this case.
Regarding captcha, it is necessary to prevent forum spam. Once you gain enough points, you will stop seeing it.
Btw, there is no need to copy code from the core, devs know about it since they created it in the first place :)
Regards
-
Hi aledia,
please provide to Osclass dev team what PHP version are you running. Also, php.ini settings may help in this case.
Regarding captcha, it is necessary to prevent forum spam. Once you gain enough points, you will stop seeing it.
Btw, there is no need to copy code from the core, devs know about it since they created it in the first place :)
Regards
I think there SHOULD be a STICKY post in all Help forums, instructing the users with problems what exactly to post. All the info needed.
-
Btw, possibly, it is either about old PHP version (say 5.2) or double-column operator :: inappropriate use.
Garcia will check it, hopefully.
Regards
-
We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed
If you experience any issues or need support, we will be happy to help you at the Osclass support forums
http://forums.osclass.org/ (http://forums.osclass.org/)
The Osclass team
-
We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed
If you experience any issues or need support, we will be happy to help you at the Osclass support forums
http://forums.osclass.org/ (http://forums.osclass.org/)
The Osclass team
There is an extra / in the rar and apparently this is a problem for some people.
-
now what i do ?
-
now what i do ?
Wait a little bit, it will be fixed. Or do it manually (ftp).
Allways backup 1st.
-
Hi aledia,
Seems to be that this syntax is not present until php 5.3.
Try to make this change at oc-includes/osclass/core/Object_Cache_Factory.php#L28
if($cache_class::is_supported()) {
to
if( call_user_func(array($cache_class, 'is_supported')) ) {
We will fix it in the next version.
Sorry for the inconvenience.
Regards
-
Hi
the image attached tells you that you are at 3.4.
Current version 3.4
You can check in your homepage html code if in content generator tag there is this tag
<meta name="generator" content="Osclass 3.4.0" />
Regards
-
yes its
<meta name="generator" content="Osclass 3.4.0" />
thanks for the help :)
-
Version 3.4 tried upgrading and failed. My site is stuck in maintenance mode. Where can I fix this?
Thanks
-
Login into admin and disable it in settings.
Another way, login via FTP and delete hidden .maintenance file in the root of Osclass (where your config.php file is).
That should fix it, then login as admin and disable maintenance mode in settings (if it is still enabled, but it shouldn't).
-
I tried auto-upgrading to osclass 3.4 without disabling permalinks, and without putting the site into maintanece mode.
After auto-upgrade it gave error in logdatabase.php in oc-includes. I even tried replacing the files which gives up warnings during extraction. after extraction it gave internal server error.
I do have a backup of oc-content and mysql.
what should I do now?
My site is sellrbuyr.in.
-
I found out that my website turn into maintenance mode automatically. and this was the message i got;
We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed
If you experience any issues or need support, we will be happy to help you at the Osclass support forums
-
Admin panel > tools > maintenance mode and disable it, or go to the root folder of your website and remove ".maintenance" file (has a dot "." before the name and could be invisible to some FTP clients)
If your installation is at maintenance mode is because the upgrade failed at some point and you need to check that everything is ok now.
Please try to upgrade again, if the error continue, I suggest you to upgrade manually : http://doc.osclass.org/Updating_Osclass (http://doc.osclass.org/Updating_Osclass)
From which version were you upgrading from ?
-
Please try manual updating http://doc.osclass.org/Updating_Osclass (http://doc.osclass.org/Updating_Osclass)
-
Hi all, I have been a little quiet lately.
I did type the below post in another thread but saw that any issues should be reported here so I have repeated it below:
I went to log into my admin panel and was surprised that I got an error message come up...something along the lines of Sparse Error, unexpected ( : ) and a synax error on line 140 on one of the log files ( sorry I should have copy and pasted it somewhere but panicked when I realised my main site also brought up the same error).
I was however able to access Ozclass via Instaltron who supplied ozclass via my provider and saw that it had automatically updated to version 3.4. Figuring that the error must have come from the upgrade I threw back to a back up (because we all do that don't we ;) ) from pre 3.4 update and it now works again.
I know I am not much help with the error for the transition to 3.4 as I didn't copy it but if it does help I am using the original bender theme with minimal add-ons. My update settings are set to automatically update minor bugs and fixes but didn't expect a major update.
Anyway, thanks everyone for their hard work and maybe I will be able to update at a later time or something without any issues popping up.
Jay
-
Hi there,
What version are you trying to upgrade?
Regards
-
I can verify this, my installations also went into maintenance mode for no reason.
It seems to be a problem with automatic updates.
Dear dev admin,
We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed
If you experience any issues or need support, we will be happy to help you at the Osclass support forums
http://forums.osclass.org/ (http://forums.osclass.org/)
The Osclass team
I was trying to go from 3.3.2 to 3.4.
In my setup everything is in order, a full 3.3.2 working website, all permissions are intact. So this is a problem of Osclass. And i did update several Osclass versions before, so this is new.
-
It seems that 3.4 was downloaded (in downloads) but nothing else happened.
So i deleted the file, disabled Maintenance Mode, disabled Automatic Updates of any kind, and i selected Upgrade. The upgrade worked right and after a while it finished and everything seems ok.
I still see "3.4.0 is available" on the top of the dashboard for some reason.
-
I think Conejo made a plugin for updating to 340 from 332, can't remember the link but its on front page somewhere.
-
Also my debug.log seems busy, are all those normal ?
-
database upgrade, unless you see some errors, nothing to be alarmed of.
-
database upgrade, unless you see some errors, nothing to be alarmed of.
You mean for example:
[05-Aug-2014 13:21:31 Europe/Madrid] --- dt_expiration datetime NOT NULL DEFAULT '9999-12-31 23:59:59'
is normal ?
-
Yes, SQL statement from struct.sql file.
-
I have OSCLass set to automatically update to newer versions. I woke up today to find that my site is down for maintenance. I have an email saying:
We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed
How do I fix this please!
-
Yes, SQL statement from struct.sql file.
Thanks.
Any ideas why i still see the Update available 3.4 on my top of my admin dashboard ? It should be like that ?
-
I have OSCLass set to automatically update to newer versions. I woke up today to find that my site is down for maintenance. I have an email saying:
We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed
How do I fix this please!
Disable Maintenance, Disable Automatic Updates.
See if everything is ok.
If you want, select Admin/Tools/Upgrade, for 3.4
-
I have OSCLass set to automatically update to newer versions. I woke up today to find that my site is down for maintenance. I have an email saying:
We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed
How do I fix this please!
Disable Maintenance, Disable Automatic Updates.
See if everything is ok.
If you want, select Admin/Tools/Upgrade, for 3.4
how to disable automatic update?
-
how to disable automatic update?
Settings, General.
-
It is tied to cron job settings, few months ago I brought that issue and Conejo said it will be addressed. In max a day or 7 days that notification should dissaperar.
-
Yes, SQL statement from struct.sql file.
Thanks.
Any ideas why i still see the Update available 3.4 on my top of my admin dashboard ? It should be like that ?
Automatic update use the SAME function as user-started update, so if one fails, the other should too.
It could fail for several reasons, most common mistake is that files have wrong permissions (are not writable).
3.3.x versions are missing a folder (oc-content/download/oc-temp), this doesn't happen on 3.2.x or previous version. To fix that, the update process is a bit different this time, and automatic update will not work (manual or launched from the admin will do).
Additionally, now, in 3.4.x the maintenance mode will be disable if the update failed AND we didn't replace a file or the unzip failed. Maintenance mode will only be enable if we replace "some" files or there's some big error and osclass wasn't able to fix it. This will only happen from 3.4 to future versions (as we can not fix already deployed versions!)
the version available will be fixed in future releases, but it should disappear in a 24h period, when the cron job re-check the version
-
here is the upgrade fix plugin for <333
http://market.osclass.org/plugins/3-3-x-upgrade-fix_97 (http://market.osclass.org/plugins/3-3-x-upgrade-fix_97)
-
here is the upgrade fix plugin for <333
http://market.osclass.org/plugins/3-3-x-upgrade-fix_97 (http://market.osclass.org/plugins/3-3-x-upgrade-fix_97)
I strongly suggest to NOT use that plugin directly and proceed with the upgrade at the admin as usual
-
Hi Conejo,
I thought that plugin was recently added or is it not? Never seen it before, honestly. Also, haven't tried it personally.
Regarding notification after update, maybe cron can be triggered after successful upgrade process, so the users don't get confused.
Regards
-
Hi Conejo,
I thought that plugin was recently added or is it not? Never seen it before, honestly. Also, haven't tried it personally.
Regarding notification after update, maybe cron can be triggered after successful upgrade process, so the users don't get confused.
Regards
Yes, we realize the problem with the update notification when it was too late to fix it and will be addressed in 3.4.1.
The plugin was added recently, but it's not intended to people to use it like that.
As I said, versions 3.3.x have a missing folder (oc-temp), for us there's no way to create a folder in an existing installation of osclass. So what we did, was to trick the update process to download said plugin, install it (triggering a hook that will create the folder and update osclass) and then uninstalling the plugin. You could do the process manually, download, install and uninstall it, but it could cause some confussion since uninstalling it will also remove the plugin itself and there's no nice message to tell the admin that the upgrade was completed or failed.
-
Disable Maintenance, Disable Automatic Updates.
See if everything is ok.
If you want, select Admin/Tools/Upgrade, for 3.4
Ok... I did all that. Turning off Maintenance mode made the site come back but it still won't upgrade: Unzip Failed.
-
Ah, now it makes it more clear what is it for. I think you should copy-paste the above explanation into market, since I thought it was a 'mandatory' add-on for anyone willing to do a proper upgrade.
Regards
-
Well, I am on Osclass 3.3.2
But, I have set them to enable upgrade so, i just saw the information in my email that. It couldn't.
-
Disable Maintenance, Disable Automatic Updates.
See if everything is ok.
If you want, select Admin/Tools/Upgrade, for 3.4
Ok... I did all that. Turning off Maintenance mode made the site come back but it still won't upgrade: Unzip Failed.
It should work, if not, please, upgrade manually http://doc.osclass.org/Updating_Osclass (http://doc.osclass.org/Updating_Osclass)
-
It should work, if not, please, upgrade manually http://doc.osclass.org/Updating_Osclass (http://doc.osclass.org/Updating_Osclass)
It doesn't.
I have to say... this is really, REALLY not good. This left my site suspended in a maintenance mode so it was completely unusable by anyone.
If you're going to have auto upgrades you should at least check and make sure it is going to work before throwing it out there.
I've turned off all future auto upgrades.
-
Automatic update use the SAME function as user-started update, so if one fails, the other should too.
It could fail for several reasons, most common mistake is that files have wrong permissions (are not writable).
Well not for me. The "automatic" failed, but the Tools/Upgrade worked well.
Or it didn't ? I wonder.
-
I have to say... this is really, REALLY not good. This left my site suspended in a maintenance mode so it was completely unusable by anyone.
If you're going to have auto upgrades you should at least check and make sure it is going to work before throwing it out there.
I've turned off all future auto upgrades.
Maybe AutoUpdate should be Disabled by default.
-
Hello,
i tried to install osclass 3.4, a clean install i got this error see below. I got the same error by upgrading from 3.3.2 with the fix update plugin.
Parse error: syntax error, unexpected ':' in /homepages/32/d426792885/htdocs/musicabet/oc-includes/osclass/Logger/LogDatabase.php on line 140.
s426792905.onlinehome.fr/
If you have some solution it will be great. Thank you!
Vanmicky!
-
http://forums.osclass.org/3-4-x/ (http://forums.osclass.org/3-4-x/)
-
Are you running php 5.2 ?
Also search the forums for that error.
-
yep PHP Version 5.2.17 i'm using 1&1. what can i do now?
-
Well maybe the Developers of Osclass should shed some light here. Does Osclass 3.4 NEED php 5.3 or later to work ?
And if so, a WARNING could be issued by the installation script.
-
Good evening friend!
I also upgraded my website and suffered the same fault.
Now could you solve?
I support but I can not restore it. The error does not allow me to enter the admin section.
Does anyone have a solution?
Thank you very much!
-
Delete all the content.
The Solution is the following create an .htacess file at your root directory.
Add the following lines :
AddType x-mapp-php5.4 .php
AddHandler x-mapp-php5.4 .php
Save it.
Begin FTP transfer and install osclass 3.4.
-
We're working on a fix to be release soon
This fix should work : https://github.com/conejoninja/Osclass/commit/63742f8239e03a7d3e9e00d0deb025dc05a45917
-
Please updata manually : http://doc.osclass.org/Updating_Osclass (http://doc.osclass.org/Updating_Osclass)
-
On Osclass 3.4.1 this issue will be fixed.
Regards
-
Hi there,
Osclass 3.4.1 will fix this issues with php 5.2, sorry for the inconvenience.
https://github.com/osclass/Osclass/commit/5ed7eed45fc576051cde6979c4ea17f856af1c78
and
https://github.com/osclass/Osclass/commit/483703536088a733cc19b368523c99a1e27beea6
-
I think PHP 5.2 should not be supported, it is dated in 2006, that is 8 years back.
PHP 5.3 is fine.
And Php 5.4 and 5.5 have much better memory management and are a bit faster.
-
I think PHP 5.2 should not be supported, it is dated in 2006, that is 8 years back.
PHP 5.3 is fine.
And Php 5.4 and 5.5 have much better memory management and are a bit faster.
Me too, but the reality is that people are still using it (as you could see here).
This change was easy for us to keep it compatible, but as soon as it appears something more complicated to make it compatible, will be dropping 5.2 compatibility.
-
Upgrade
Your Osclass installation can be auto-upgraded. Please, back up your database and the folder oc-content before attempting to upgrade your Osclass installation. You can also upgrade Osclass manaully, more information in the Wiki
Checking for updates (Current version 332)New version to update: 341
Upgrade your installation
New version Osclass 3.4.1
Perform backups both for your database and stored files in your installation Tools -> Backup , as they will help you restore your site in case of trouble.
Upgrade
Upgrading your Osclass installation (this could take a while):Unzip failed
-
Upgrade
Your Osclass installation can be auto-upgraded. Please, back up your database and the folder oc-content before attempting to upgrade your Osclass installation. You can also upgrade Osclass manaully, more information in the Wiki
Checking for updates (Current version 332)New version to update: 341
Upgrade your installation
New version Osclass 3.4.1
Perform backups both for your database and stored files in your installation Tools -> Backup , as they will help you restore your site in case of trouble.
Upgrade
Upgrading your Osclass installation (this could take a while):Unzip failed
Please, read the first page : http://forums.osclass.org/3-4-x/problems-with-update-post-here/msg41372/#msg41372 (http://forums.osclass.org/3-4-x/problems-with-update-post-here/msg41372/#msg41372)
-
reminder notification of 3.4.1 upgrade remains in admin header after upgrade.
and in bender or where ever you changed the url so that the csrf no longer shows in the url. could you please provide those changes so we can update our other themes.
thanks :-)
-
reminder notification of 3.4.1 upgrade remains in admin header after upgrade.
and in bender or where ever you changed the url so that the csrf no longer shows in the url. could you please provide those changes so we can update our other themes.
thanks :-)
what do you mean the csrf doesn't show in the URL ? where exactly?
-
reminder notification of 3.4.1 upgrade remains in admin header after upgrade.
I think it goes away after a CRON or so.
-
in the search. If I search jobs in my theme I get the csrf in the url, in the bender 2.0 I don't see it..
looks normal, like http://xxx.com/update/index.php?page=search&sPattern=jobs (http://xxx.com/update/index.php?page=search&sPattern=jobs)
in my theme it looks like this:
http://xxx.com/update/index.php?page=search&CSRFName=CSRF243780233_1110331465&CSRFToken=2279d0110d1c2beb76b538c027e784a8eda2096810a7833f700e175b02a14cc36283ff3149a5a65c6c6a0829ccac33854632114055db0440a8a13e82fc91211a&sPattern=jobs (http://xxx.com/update/index.php?page=search&CSRFName=CSRF243780233_1110331465&CSRFToken=2279d0110d1c2beb76b538c027e784a8eda2096810a7833f700e175b02a14cc36283ff3149a5a65c6c6a0829ccac33854632114055db0440a8a13e82fc91211a&sPattern=jobs)
-
Thank you for this speed update.
-
in the search. If I search jobs in my theme I get the csrf in the url, in the bender 2.0 I don't see it.
Hi design,
that is a theme-related issue, not a core-update one. Also, there is a solution posted recently in the forums ;)
Regards
-
^^^ I know it's theme related, but now you say it's in the forums. I will search again. any chance you can give me a hint on a key word that will find it -besides csrf ::)
-
Just check my profile's 'recent' posts ;)
-
Thank you _conejo ;D
-
https://github.com/osclass/Osclass/archive/master.zip
osclass 3.4.1 no bug , working : https://github.com/osclass/Osclass/archive/master.zip
https://github.com/osclass/Osclass : https://github.com/osclass/Osclass/archive/master.zip
-
https://github.com/osclass/Osclass/archive/master.zip
osclass 3.4.1 no bug , working : https://github.com/osclass/Osclass/archive/master.zip
https://github.com/osclass/Osclass : https://github.com/osclass/Osclass/archive/master.zip
Modify message
-
^^^ I know it's theme related, but now you say it's in the forums. I will search again. any chance you can give me a hint on a key word that will find it -besides csrf ::)
forms need the "nocsrf" class to not post the CSRF in the url, example
<form action="<?php echo osc_base_url(true); ?>" method="get" class="nocsrf">
-
Last night i did two upgrades of real live websites. From 3.3.2 to 3.4.1 using the auto update.
While the update didn't show any errors and finished (and 3.4.1 was on the lower right), the result was a mess. Many files/folders didn't update.
I had to manually upload the files and overwrite.
And please do not suggest to check my permissions.
And i found it out because Osclass after the update told me to upgrade Bender (!). So i checked and found old files and folders.
upd: We are now restoring 3.3.2 fully, since something is not right and i;m afraid the DB also has some problems after updatings. Not sure but better to be safe.
-
Bender will not be updated, many people complained that with core updates bender was also getting updated, so if you update the core, bender theme will not be updated.
-
Bender will not be updated, many people complained that with core updates bender was also getting updated, so if you update the core, bender theme will not be updated.
I don't get it. The Download of 3.4.1 includes Bender but the build-in update doesn't ?
In any case, seems complicated to me.
-
When updating I forgot to turn off permlinks.Now I started a site and permalinks do not work__???
It seems that everiting else is working properly
How to re-enable this feature, Is there a bug or... ???
Resolved, not properly configured fields ;)
-
Quite important that themes arent altered/overwritten when upgrading,
so what the team is doing here is the way it should be.
You may not have any custom work done to the theme, but most people do
and they will lose all they're work...
HUGE thumbs-up for new release :)
-
2 of my sites will still not auto update through admin panel. I will need to manually upload :-( oooo my poor aching fingers :P
-
hello, why we can not delete a user in osclass 3.4.1
thank you for help
-
hello, why we can not delete a user in osclass 3.4.1
thank you for help
First, that has nothing to do with upgrading Osclass. And second, you already opened a topic for said problem, no need to post here
-
I know I opened another post and saw that I have no answer here is WHY I am, second I deactivated all plugins and nothing changes, so that c'st well osclass 3.4.1 not going because with 3.3.2 everything was fine
-
Hi, with osclass 3.4.1 i have a problem when i change the language from english to italian... the language of categories is always english. Why? :(
My website is: www.adsmadeinitaly.com (http://www.adsmadeinitaly.com)
-
@havanablack Try to search for items aswell. I bet you wont find a single hit :)
Change back to english and try again.
-
@xilian... now i see that this problem is only with italian language, if i use another language is all ok!1 :'( why? :(
-
There's a bug. If you dont use the standard langauge, search stops working...
-
@xilian thanks for your support. Is best if i wait for the resolution of this bug, or is best if i reinstall osclass?
-
re-install wont fix a thing. OSC-dudes have to fix the bug (wich has been around for quite some time... Even the prior release)
So stay with default 'til its fixed. I have to do that aswell...
-
Thanks @xillian, i will wait the resolution of this bug. Thank u ;)
-
how can i Disable Auto Upgrade Osclass ?
bicuse i make custom code for API in Osclass, and when Upgrade osclass, my codes has been Replaced...
-
http://forums.osclass.org/3-3-x/how-to-stop-the-osclass-script-automatically-update/ (http://forums.osclass.org/3-3-x/how-to-stop-the-osclass-script-automatically-update/)
-
just wanna know which version is the latest? I installed 3.3.x and saw in control panel that there's a newer version so clicked it and update. first search doesn't return a result. I tried adding a new ad and i can search this item fine. Did the update messed the files? thanks
Oh and I cannot see the 3.4.3 release tag in github.
-
Here is always the latest, if you are ever in doubt:
http://osclass.org/page/download (http://osclass.org/page/download)
-
Upgrade to 3.6 is available via admin or not?
In demo osclass i see 3.6 but in 3 different installs (one domain and 2 subdomains) i get Checking for updates (Current version 359) Congratulations! Your Osclass installation is up to date!
-
It's not official yet, I guess it will be available on Monday.