Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

create_account.php syntax error, unexpected T_STRING


moisap

Recommended Posts

Posted

Hi all,

Im pretty new with OsCommerce. I was editing create_account.php file in admin panel.

I made some mistake in the code and i got some error notice. I tried to solve the problem by replacing the editetd file with original create_account.php file via FTP.

The file was replaced with original but obviously it didnt work and now i got this error:

Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/shopmana/public_html/shop/includes/functions/compatibility.php:18) in /home/shopmana/public_html/shop/includes/functions/compatibility.php on line 30

 

What can be done? Thank u!

Posted

Hi all,

Im pretty new with OsCommerce. I was editing create_account.php file in admin panel.

I made some mistake in the code and i got some error notice. I tried to solve the problem by replacing the editetd file with original create_account.php file via FTP.

The file was replaced with original but obviously it didnt work and now i got this error:

Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/shopmana/public_html/shop/includes/functions/compatibility.php:18) in /home/shopmana/public_html/shop/includes/functions/compatibility.php on line 30

 

What can be done? Thank u!

Did you upload via ftp in ASCII mode? That is very necessary. Also, you said that you were editing using the admin panel. The osC admin panel? You should not use that as it is a security risk, and often corrupts files.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

Did you upload via ftp in ASCII mode? That is very necessary. Also, you said that you were editing using the admin panel. The osC admin panel? You should not use that as it is a security risk, and often corrupts files.

 

My FTP was set on Auto so im not sure what is the default setting, i make sure I´ll use ASCII in future. And yes i was using the osC admin panel (that could explain why the file was corrupted, because I only edited text content). What program do you recommend for editing? Is Dreamweaver ok or just notepad etc..?

 

I uploaded the original file in ASCII mode and it works again! Thank you for your help! Much appreciated :)

 

-ap

Posted

My FTP was set on Auto so im not sure what is the default setting, i make sure I´ll use ASCII in future. And yes i was using the osC admin panel (that could explain why the file was corrupted, because I only edited text content). What program do you recommend for editing? Is Dreamweaver ok or just notepad etc..?

 

I uploaded the original file in ASCII mode and it works again! Thank you for your help! Much appreciated :)

 

-ap

The best thing to use is a plain text editor that have the line numbers on them. Everyone has their own favorites. I use Arachnophilia

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

The best thing to use is a plain text editor that have the line numbers on them. Everyone has their own favorites. I use Arachnophilia

 

Cheers mate!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...