Rike-cz

Rike-cz

Member Since 8 years ago

Czech Republic

0 organizations

Experience Points
0
follower
Lessons Completed
0
follow
Lessons Completed
2
stars
Best Reply Awards
5
repos

23 contributions in the last year

Rike-cz Most Used Languages
Rike-cz GitHub Stats

5 Pinned

⚡ Adds static pages and menus
⚡ Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
⚡ October Rain Library
⚡ Playground for OctoberCMS
⚡ The OctoberCMS Documentation
Jun
11
1 week ago
Activity icon
issue

Rike-cz issue comment PHPOffice/PhpSpreadsheet

Rike-cz
Rike-cz

Unreadable content when including drawings

This is:

  • a bug report (I beleive)

What is the expected behavior?

Include drawings without causing any problems

What is the current behavior?

If I add drawings dynamically (via code) this causes an "unreadable content" message when opening the file. The odd thing is that this is only happening on my local webserver, not online (!).

What are the steps to reproduce?

I simply added

$drawing = new PhpOffice\PhpSpreadsheet\Worksheet\Drawing();
$drawing->setPath(__DIR__ . '/assets/img/logodefViola.png'); 
$drawing->setHeight(40);
$drawing->setCoordinates('B1');  
$drawing->setWorksheet($spreadsheet->getActiveSheet()); 

Which versions of PhpSpreadsheet and PHP are affected?

I downloaded it one week ago then I guess it's the most up to date

I commented another issue (https://github.com/PHPOffice/PhpSpreadsheet/issues/610) but then I realized it is closed for some reason, even if it is not solved:

This is the story: When I "clone" a worksheet that includes a drawing (I have a logo on each worksheet ) the response is an "out of memory". Then as a workaround I decided to make a template without logo and use the

$drawing = new PhpOffice\PhpSpreadsheet\Worksheet\Drawing();
$drawing->setPath(__DIR__ . '/assets/img/logodefViola.png'); 
$drawing->setHeight(40);
$drawing->setCoordinates('B1');  
$drawing->setWorksheet($spreadsheet->getActiveSheet()); 

to include the logo dinamically everytime I clone a worksheet. This seems to work BUT, probably linked to this, I have another issue which might be a character coding issue but can't find how to solve it: when I generate my excel file on localhost it says there is unreadable text in the file (I have tried the exit() instruction at the end of the file, I have tried to remove the '?>' chars, as I found in another thread...still this is the error I see) and then another mask appears where it says PRINTER OPTIONS are REMOVED, which is what I don't want: I need print options (on A3 paper and front/rear ) to be saved and replicated on all worksheets I generate, not removed.... I tried to publish online ad happily I have no more "unreadable character", but I need it to work locally too, to make my tests....what do you suggest me to try? Find attached screenshot: they're in italian I make some translation for you : ) screenshot 2019-02-05 16 56 03 (translation: ...".xlsx includes unreadable content. Recover worksheet content?) screenshot 2019-02-05 16 56 11 (translation: the file could be recovered : it is possible that some parts got deleted: Print options Print options Print options ...etc: most likely one per each worksheet I cloned... Please help

If I remove the "drawings" part everything works fine.

[To give more details that might help: I have another issue in my application that might be connected to the above problem: character coding is not the same locally and on the web and even though I have tried to solve this in 1000 ways (editing httpd.conf, editing php.ini, adding meta tags on my html pages) still I see my texts locally not displayed in the right way...all accented letters are mistyped....which is not happening online.]

Please help

Rike-cz
Rike-cz

This bug with XLSX and PNG images/drawings is back in v1.18.0! In 1.16.0 was everything ok.

May
20
1 month ago
Activity icon
issue

Rike-cz issue bmewburn/vscode-intelephense

Rike-cz
Rike-cz

Methods inherence marker

Is there any setup for methods inheritance marking? Eclipse IDE has this feature and it's very useful. Methods that override parent methods are marked: inherence

Apr
19
2 months ago
Activity icon
issue

Rike-cz issue octobercms/october

Rike-cz
Rike-cz

[1.1] Taglist bug

There is a bug in version 1.1.5 taglist. https://github.com/octobercms/october/blob/1.1/modules/backend/formwidgets/taglist/partials/_taglist.htm#L22

This line means that "else" is executed for array in non-readOnly mode too, so array to string error is thrown on line 33.

Apr
16
2 months ago
Activity icon
issue

Rike-cz issue comment octobercms/october

Rike-cz
Rike-cz

Repeater dropdowns dependency - bug is back

This bug was solved in v1.1.1, but is back now in v1.1.4.

I have repeater with form containing two dropdowns. Second depends on first one. When new form is rendered and new repeater item added, selecting first dropdown item triggers every second dropdown's loading event on each form. When I have 5 previous repeater forms on popup, event is triggered 5 times unnecessarily. When one form is removed and added back, it starts to work as expected. repeater

Rike-cz
Rike-cz

@daftspunk There is not plan to make last stable 1.1.* before switching to new version?

Activity icon
issue

Rike-cz issue octobercms/october

Rike-cz
Rike-cz

Repeater dropdowns dependency - bug is back

This bug was solved in v1.1.1, but is back now in v1.1.4.

I have repeater with form containing two dropdowns. Second depends on first one. When new form is rendered and new repeater item added, selecting first dropdown item triggers every second dropdown's loading event on each form. When I have 5 previous repeater forms on popup, event is triggered 5 times unnecessarily. When one form is removed and added back, it starts to work as expected. repeater

Mar
26
2 months ago
Activity icon
delete

Rike-cz in Rike-cz/docs delete branch patch-1

deleted time in 2 months ago