Theme customization error

Laraship QuestionsCategory: TechnicalTheme customization error
buddydev93 asked 5 years ago

so i tried to customize a frontend theme by executing the php artisan theme:create command.
and when i activated the theme and navigate to the page i got Object of class Illuminate\Routing\UrlGenerator could not be converted to string error.
can anyone help fix it soon please? thanks.
 

Attachments
laraship Staff replied 5 years ago

Hello,
Can you attach the log file for us, please

buddydev93 replied 5 years ago

Sure, uploaded it

buddydev93 replied 5 years ago

ok so it seems like i have no problem extending admin theme, but the problem arises when i extended frontend theme.
please help me fix this quick

1 Answers
laraship Staff answered 5 years ago
Hello, Looks like in your custom theme you're calling the js function with non-string variable like url(), you should only pass the string there like  
{!! Theme::js('js/plugins.js') !!}
buddydev93 replied 5 years ago

well, in fact i haven’t added any files to my sustom theme, i just tried to extend existing theme and see if it works, should i add some js,css or other files to make it work ? my current custom theme folder only has one file which is theme.json

buddydev93 replied 5 years ago

any solution?

laraship Staff replied 5 years ago

Hello, If you activate the main theme is, do you have any issues?

buddydev93 replied 5 years ago

no issues with the main theme, it’s just the custom theme that’s not working.
i’m extending corals-ecommerce-mimity.
i believe it has something to do with this line
“return sprintf(”, $this->url($href));”
when i comment it, it works, but of course then i miss the js files.

laraship Staff replied 5 years ago

Please send us ftp access and application login to info@laraship.com

buddydev93 replied 5 years ago

please check the email i sent you

buddydev93 replied 5 years ago

still no fixes.. i’m quite disappointed with the customer service