doofpot / DBFToMySQL

xbase/dbf to MySQL import tool
Other
21 stars 25 forks source link

Cannot access protected property #11

Open samsmyyth opened 3 years ago

samsmyyth commented 3 years ago

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 commented 3 years ago

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

vinvin27 commented 3 years ago

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