DBFToMySQL icon indicating copy to clipboard operation
DBFToMySQL copied to clipboard

Cannot access protected property

Open samsmyyth opened this issue 5 years ago • 2 comments

Can anyone tell my why I get error

( ! ) Error: Cannot access protected property XBase\Column\VisualFoxproColumn::$name in C:\wamp64\www\DBFtoSQL\DBFToMySQL\dbf-import.php on line 49

49| print_r("\t$column->name ($column->type / $column->length)\n");

samsmyyth avatar Nov 10 '20 21:11 samsmyyth

All I did was follow directions from readme and I have installed php-xbase, DBFToMySQL, and data folder all in same directory.

samsmyyth avatar Nov 10 '20 21:11 samsmyyth

Hello,

In my case I change all properties from protected to public in /vendor/hisamu/php-xbase/src/XBase/Column/AbstractColumn

I know its not a perfect way to solve this issue but I don't find another way

here is my modified file : https://pastebin.com/dBXjwZz4

vinvin27 avatar Feb 17 '21 18:02 vinvin27