osclass / Osclass

With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
http://osclass.org/
647 stars 344 forks source link

Upload bug, Cannot redeclare osc_item_deactivate_url() #2323

Open petrsoudek opened 3 years ago

petrsoudek commented 3 years ago

Hi Community, I had problems uploading the new theme, so I uploaded it manually via FTP, next I wanted to activate it, but I got Error 500, I also can't delete it via admin.

Here is Nginx error log:

Cannot redeclare osc_item_deactivate_url() (previously declared in /www/osclass/oc-includes/osclass/helpers/hDefines.php:811) in /www/osclass/oc-content/themes/violet/functions.php on line 1248" while reading response header from upstream, client: 109.251.55.169, server: farm-portal.mydomain.com, request: "GET /oc-admin/index.php?page=appearance&action=activate&theme=violet&CSRFName=CSRF962944708_509823959&CSRFToken=7458a747130aa6452ab1a2f3c27b046d84bae26713f6577e8d4a9d25b5e6152f80b698abfbcc8973c8a6ba7d9436eb6670c765f6020b5f398ef4506f21506c49 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "farm-portal.mydomain.com", referrer: "https://farm-portal.mydomain.com/oc-admin/index.php?page=appearance"

Thanks a lot!