Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.36k stars 2.76k forks source link

EXPORT ASISTENT 18.0.0-alpha #24715

Closed mirnes81 closed 1 year ago

mirnes81 commented 1 year ago

Bug

I am using version 18 Alpha I know this a devlepement version but I am using it as emme

I will report to you the beug follow a letap 5 extraction nothing more

Capture web_9-5-2023_152041_mirnes ch

Environment Version

18

Environment OS

Windows

Environment Web server

No response

Environment PHP

7.3

Environment Database

No response

Environment URL(s)

No response

Expected and actual behavior

No response

Steps to reproduce the behavior

No response

Attached files

No response

ksar-ksar commented 1 year ago

Hello,

Blank page = PHP Error => What does the PHP logs said ?

ozit commented 1 year ago

Hello, almost the same bug I don't have a completely blank page, just the "below" part (see attached image) I don't believe there is an error in the logs. Capture d'écran 2023-05-15 155853 Capture d'écran 2023-05-15 155844

ksar-ksar commented 1 year ago

Yes, just the below part means PHP error Can you check the logs ?

Edit, I have reproduced the error on the latest Dev version : PHP Fatal error: Cannot declare class ExportCsv, because the name is already in use in /var/www/doli/dev/core/modules/export/export_csv.modules.php on line 0

mirnes81 commented 1 year ago

I want but I don't know how to do it sorry

tiaris commented 1 year ago

works for me 18.0-beta devcamp Boirdeaux

AurelienBISOTTI commented 1 year ago

From a fresh install, I cannot reproduce

Do those who have been able to reproduce upgraded from an older version ? Capture d’écran du 2023-06-11 11-18-32

apio-sys commented 1 year ago

I can still reproduce this but with an upgraded version to 18.0.0 from 17.0.3 (initial installation 3.6.2).

ksar-ksar commented 1 year ago

Hello,

Explained here : #25654

In V18, the file htdocs/core/modules/export/exports_csv.modules.php has been renamed to htdocs/core/modules/export/exportscsv.modules.php

Do you have both files or only one?

FIX #25741

apio-sys commented 1 year ago

Thanks @ksar-ksar . Indeed my issue was there for the same reason by upgrading by copying the new files over the old ones. Cleaned all out and did it again and it's working OK again. Thanks for that.

I usually upgrade as follows:

cd /var/www/[dolibarr_webdir] git clone https://github.com/dolibarr/dolibarr -b 18.0.0

\cp -r dolibarr/htdocs/ htdocs \cp -r dolibarr/scripts/ scripts

So it's really better to clear the code dirs first I presume to avoid such errors.