snubbr.com

Xtra verisign Certificate has expired. how is this up dated?

Get a Verisign SSL certificate for 30 days FREE. Click here to use coupon...

Get a free trial of Verisign SSL certificates. Click here for this special deal...
Got a question, hope someone can answer... Xtra verisign Certificate has expired. how is this up dated? Thanks in advance for any response. 2nd question I got is.. Hi,.

Just re-installed back osCommerce after the previous osCommerce got many problems. The problem now is, when my first time opening the admin page an error appeared as below:.

Fatal error: Cannot re-assign $this in /home/sultrysu/public_html/shop/admin/includes/classes/upload.php on line 31.

You can check it directly at.

Http://www.sultrysutera.com/shop.

Now, I give you my upload.php scripts for more easier to identify the problem..

<?php.

/*.

$Id: upload.php,v 1.2 2003/06/20 00:18:30 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Class upload {.

Var $file, $filename, $destination, $permissions, $extensions, $tmp_filename, $message_location;.

Function upload($file = '', $destination = '', $permissions = '777', $extensions = '') {.

$this->set_file($file);.

$this->set_destination($destination);.

$this->set_permissions($permissions);.

$this->set_extensions($extensions);.

$this->set_output_messages('direct');.

If (tep_not_null($this->file) && tep_not_null($this->destination)) {.

$this->set_output_messages('session');.

If ( ($this->parse() == true) && ($this->save() == true) ) {.

Return true;.

} else {.

// self destruct.

$this = null;.

Return false;.

}.

}.

}.

Function parse() {.

Global $messageStack;.

If (isset($_FILES[$this->file])) {.

$file = array('name' => $_FILES[$this->file]['name'],.

'type' => $_FILES[$this->file]['type'],.

'size' => $_FILES[$this->file]['size'],.

'tmp_name' => $_FILES[$this->file]['tmp_name']);.

} elseif (isset($GLOBALS['HTTP_POST_FILES'][$this->file])) {.

Global $HTTP_POST_FILES;.

$file = array('name' => $HTTP_POST_FILES[$this->file]['name'],.

'type' => $HTTP_POST_FILES[$this->file]['type'],.

'size' => $HTTP_POST_FILES[$this->file]['size'],.

'tmp_name' => $HTTP_POST_FILES[$this->file]['tmp_name']);.

} else {.

$file = array('name' => (isset($GLOBALS[$this->file'_name']) ? $GLOBALS[$this->file'_name'] : ''),.

'type' => (isset($GLOBALS[$this->file'_type']) ? $GLOBALS[$this->file'_type'] : ''),.

'size' => (isset($GLOBALS[$this->file'_size']) ? $GLOBALS[$this->file'_size'] : ''),.

'tmp_name' => (isset($GLOBALS[$this->file]) ? $GLOBALS[$this->file] : ''));.

}.

If ( tep_not_null($file['tmp_name']) && ($file['tmp_name'] != 'none') && is_uploaded_file($file['tmp_name']) ) {.

If (sizeof($this->extensions) > 0) {.

If (!in_array(strtolower(substr($file['name'], strrpos($file['name'], '.')+1)), $this->extensions)) {.

If ($this->message_location == 'direct') {.

$messageStack->add(ERROR_FILETYPE_NOT_ALLOWED, 'error');.

} else {.

$messageStack->add_session(ERROR_FILETYPE_NOT_ALLOWED, 'error');.

}.

Return false;.

}.

}.

$this->set_file($file);.

$this->set_filename($file['name']);.

$this->set_tmp_filename($file['tmp_name']);.

Return $this->check_destination();.

} else {.

If ($this->message_location == 'direct') {.

$messageStack->add(WARNING_NO_FILE_UPLOADED, 'warning');.

} else {.

$messageStack->add_session(WARNING_NO_FILE_UPLOADED, 'warning');.

}.

Return false;.

}.

}.

Function save() {.

Global $messageStack;.

If (substr($this->destination, -1) != '/') $this->destination .= '/';.

If (move_uploaded_file($this->file['tmp_name'], $this->destination$this->filename)) {.

Chmod($this->destination$this->filename, $this->permissions);.

If ($this->message_location == 'direct') {.

$messageStack->add(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');.

} else {.

$messageStack->add_session(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');.

}.

Return true;.

} else {.

If ($this->message_location == 'direct') {.

$messageStack->add(ERROR_FILE_NOT_SAVED, 'error');.

} else {.

$messageStack->add_session(ERROR_FILE_NOT_SAVED, 'error');.

}.

Return false;.

}.

}.

Function set_file($file) {.

$this->file = $file;.

}.

Function set_destination($destination) {.

$this->destination = $destination;.

}.

Function set_permissions($permissions) {.

$this->permissions = octdec($permissions);.

}.

Function set_filename($filename) {.

$this->filename = $filename;.

}.

Function set_tmp_filename($filename) {.

$this->tmp_filename = $filename;.

}.

Function set_extensions($extensions) {.

If (tep_not_null($extensions)) {.

If (is_array($extensions)) {.

$this->extensions = $extensions;.

} else {.

$this->extensions = array($extensions);.

}.

} else {.

$this->extensions = array();.

}.

}.

Function check_destination() {.

Global $messageStack;.

If (!is_writeable($this->destination)) {.

If (is_dir($this->destination)) {.

If ($this->message_location == 'direct') {.

$messageStack->add(sprintf(ERROR_DESTINATION_NOT_WRITEABLE, $this->destination), 'error');.

} else {.

$messageStack->add_session(sprintf(ERROR_DESTINATION_NOT_WRITEABLE, $this->destination), 'error');.

}.

} else {.

If ($this->message_location == 'direct') {.

$messageStack->add(sprintf(ERROR_DESTINATION_DOES_NOT_EXIST, $this->destination), 'error');.

} else {.

$messageStack->add_session(sprintf(ERROR_DESTINATION_DOES_NOT_EXIST, $this->destination), 'error');.

}.

}.

Return false;.

} else {.

Return true;.

}.

}.

Function set_output_messages($location) {.

Switch ($location) {.

Case 'session':.

$this->message_location = 'session';.

Break;.

Case 'direct':.

Default:.

$this->message_location = 'direct';.

Break;.

}.

}.

}.

?>.

Help will be appreciated. Thank you so much...

Comments (78)

I'm stumped. I'm not so sure what is the answer to that question. I'll do some research in Google and get back to you if I got an good answer. You should email the people at Verisign as they probably could assist you..

Comment #1

So funny. I didnt have any knowledge about php but after I removed the code in the line 31,.

$this = null;.

The error is not appear anymore. Am I doing the right thing? Worry will effect in the future..

Thank you..

This post has been edited by.

Yesme.

: 13 February 2009, 04:28..

Comment #2

Okay, now once again an error appears related to the upload.php file. This time I were trying to upload a product to the catalog but an errors message appeared as below:.

Warning: move_uploaded_file(/home/sultrysu/public_html/shop/images/dynamic.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/susu/public_html/shop/admin/includes/classes/upload.php on line 92.

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php0X8ABw' to '/home/susu/public_html/shop/images/dynamic.jpg' in /home/sultrysu/public_html/shop/admin/includes/classes/upload.php on line 92.

Please help regarding this matter. Very much appreciates for any help. Thank you...

Comment #3

Hi,.

Looks like I am the only person who talking with ghost over here hahaha..

Now, after my pimples growing up bigger because of tension, I has resolve the problem by myself..

By removing,.

// self destruct.

$this = null;.

The errors which appears in the admin page and upload product page have already gone..

Btw, thank you for mute your mouth as I am able to solve this prob myself. But not guarantee for other problem arise..

This post has been edited by.

Yesme.

: 13 February 2009, 07:44..

Comment #4

Hi,.

Your store still has many errors:.

Http://www.sultrysut...php?cPath=30_36.

It seems to me that you are on PHP5/MySQl5 Verisign hosting environment, which is causing these errors..

Here is an obsolete solution for your errors..

Http://addons.oscommerce.com/info/3727.

Hope this will help you..

Comment #5

Shantnu,.

Thank you for your respond. My removal is same like the obsolete solution..

But, yes I am having that 1054 problem too. I think because the tempate itself. I got it free and install it because the layout is so professional eventhough the version is very old, I do not know but the copyright is 2003..

This post has been edited by.

Yesme.

: 13 February 2009, 10:06..

Comment #6

You just need to follow the instructions in the text document yes it is due to version, the one you are using was made for PHP4..

Just follow the instructions and everything will be fine..

Comment #7

Hi,.

Just re-installed back osCommerce after the previous osCommerce got many problems. The problem now is, when my first time opening the admin page an error appeared as below:.

Fatal error: Cannot re-assign $this in /home/sultrysu/public_html/shop/admin/includes/classes/upload.php on line 31.

You can check it directly at.

Http://www.sultrysutera.com/shop.

Now, I give you my upload.php scripts for more easier to identify the problem..

<?php.

/*.

$Id: upload.php,v 1.2 2003/06/20 00:18:30 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Class upload {.

Var $file, $filename, $destination, $permissions, $extensions, $tmp_filename, $message_location;.

Function upload($file = '', $destination = '', $permissions = '777', $extensions = '') {.

$this->set_file($file);.

$this->set_destination($destination);.

$this->set_permissions($permissions);.

$this->set_extensions($extensions);.

$this->set_output_messages('direct');.

If (tep_not_null($this->file) && tep_not_null($this->destination)) {.

$this->set_output_messages('session');.

If ( ($this->parse() == true) && ($this->save() == true) ) {.

Return true;.

} else {.

// self destruct.

$this = null;.

Return false;.

}.

}.

}.

Function parse() {.

Global $messageStack;.

If (isset($_FILES[$this->file])) {.

$file = array('name' => $_FILES[$this->file]['name'],.

'type' => $_FILES[$this->file]['type'],.

'size' => $_FILES[$this->file]['size'],.

'tmp_name' => $_FILES[$this->file]['tmp_name']);.

} elseif (isset($GLOBALS['HTTP_POST_FILES'][$this->file])) {.

Global $HTTP_POST_FILES;.

$file = array('name' => $HTTP_POST_FILES[$this->file]['name'],.

'type' => $HTTP_POST_FILES[$this->file]['type'],.

'size' => $HTTP_POST_FILES[$this->file]['size'],.

'tmp_name' => $HTTP_POST_FILES[$this->file]['tmp_name']);.

} else {.

$file = array('name' => (isset($GLOBALS[$this->file'_name']) ? $GLOBALS[$this->file'_name'] : ''),.

'type' => (isset($GLOBALS[$this->file'_type']) ? $GLOBALS[$this->file'_type'] : ''),.

'size' => (isset($GLOBALS[$this->file'_size']) ? $GLOBALS[$this->file'_size'] : ''),.

'tmp_name' => (isset($GLOBALS[$this->file]) ? $GLOBALS[$this->file] : ''));.

}.

If ( tep_not_null($file['tmp_name']) && ($file['tmp_name'] != 'none') && is_uploaded_file($file['tmp_name']) ) {.

If (sizeof($this->extensions) > 0) {.

If (!in_array(strtolower(substr($file['name'], strrpos($file['name'], '.')+1)), $this->extensions)) {.

If ($this->message_location == 'direct') {.

$messageStack->add(ERROR_FILETYPE_NOT_ALLOWED, 'error');.

} else {.

$messageStack->add_session(ERROR_FILETYPE_NOT_ALLOWED, 'error');.

}.

Return false;.

}.

}.

$this->set_file($file);.

$this->set_filename($file['name']);.

$this->set_tmp_filename($file['tmp_name']);.

Return $this->check_destination();.

} else {.

If ($this->message_location == 'direct') {.

$messageStack->add(WARNING_NO_FILE_UPLOADED, 'warning');.

} else {.

$messageStack->add_session(WARNING_NO_FILE_UPLOADED, 'warning');.

}.

Return false;.

}.

}.

Function save() {.

Global $messageStack;.

If (substr($this->destination, -1) != '/') $this->destination .= '/';.

If (move_uploaded_file($this->file['tmp_name'], $this->destination$this->filename)) {.

Chmod($this->destination$this->filename, $this->permissions);.

If ($this->message_location == 'direct') {.

$messageStack->add(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');.

} else {.

$messageStack->add_session(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');.

}.

Return true;.

} else {.

If ($this->message_location == 'direct') {.

$messageStack->add(ERROR_FILE_NOT_SAVED, 'error');.

} else {.

$messageStack->add_session(ERROR_FILE_NOT_SAVED, 'error');.

}.

Return false;.

}.

}.

Function set_file($file) {.

$this->file = $file;.

}.

Function set_destination($destination) {.

$this->destination = $destination;.

}.

Function set_permissions($permissions) {.

$this->permissions = octdec($permissions);.

}.

Function set_filename($filename) {.

$this->filename = $filename;.

}.

Function set_tmp_filename($filename) {.

$this->tmp_filename = $filename;.

}.

Function set_extensions($extensions) {.

If (tep_not_null($extensions)) {.

If (is_array($extensions)) {.

$this->extensions = $extensions;.

} else {.

$this->extensions = array($extensions);.

}.

} else {.

$this->extensions = array();.

}.

}.

Function check_destination() {.

Global $messageStack;.

If (!is_writeable($this->destination)) {.

If (is_dir($this->destination)) {.

If ($this->message_location == 'direct') {.

$messageStack->add(sprintf(ERROR_DESTINATION_NOT_WRITEABLE, $this->destination), 'error');.

} else {.

$messageStack->add_session(sprintf(ERROR_DESTINATION_NOT_WRITEABLE, $this->destination), 'error');.

}.

} else {.

If ($this->message_location == 'direct') {.

$messageStack->add(sprintf(ERROR_DESTINATION_DOES_NOT_EXIST, $this->destination), 'error');.

} else {.

$messageStack->add_session(sprintf(ERROR_DESTINATION_DOES_NOT_EXIST, $this->destination), 'error');.

}.

}.

Return false;.

} else {.

Return true;.

}.

}.

Function set_output_messages($location) {.

Switch ($location) {.

Case 'session':.

$this->message_location = 'session';.

Break;.

Case 'direct':.

Default:.

$this->message_location = 'direct';.

Break;.

}.

}.

}.

?>.

Help will be appreciated. Thank you so much...

Comment #8

I have searched entire forum but didnt find any similar issue. Could somebody help me regarding this matter?...Thank you...

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.

 

Categories: Home | Diet & Weight Management | Vitamins & Supplements | Herbs & Cleansing |

Sexual Health | Medifast Support | Nutrisystem Support | Medifast Questions |

Web Hosting | Web Hosts | Website Hosting | Hosting |

Web Hosting | GoDaddy | Digital Cameras | Best WebHosts |

Web Hosting FAQ | Web Hosts FAQ | Hosting FAQ | Hosting Group |

Hosting Questions | Camera Tips | Best Cameras To Buy | Best Cameras This Year |

Camera Q-A | Digital Cameras Q-A | Camera Forum | Nov 2010 - Cameras |

Oct 2010 - Cameras | Oct 2010 - DSLRs | Oct 2010 - Camera Tips | Sep 2010 - Cameras |

Sep 2010 - DSLRS | Sep 2010 - Camera Tips | Aug 2010 - Cameras | Aug 2010 - DSLR Tips |

Aug 2010 - Camera Tips | July 2010 - Cameras | July 2010 - Nikon Cameras | July 2010 - Canon Cameras |

July 2010 - Pentax Cameras | Medifast Recipes | Medifast Recipes Tips | Medifast Recipes Strategies |

Medifast Recipes Experiences | Medifast Recipes Group | Medifast Recipes Forum | Medifast Support Strategies |

Medifast Support Experiences |

 

(C) Copyright 2010 All rights reserved.