themexpert / onepager

Onepage Theme/Website Builder for WordPress
https://themesgrove.com/wp-onepager/
Other
304 stars 101 forks source link

Multisite error - I SOLVED (Custom Theme) #107

Closed ricardowone closed 8 years ago

ricardowone commented 8 years ago

Hi I found this error

Fatal error: Call to undefined function App\Assets\wp_scripts()

Fatal error: Call to undefined function App\Assets\wpscripts() in /home/****/_**/zumpsites.com/public_html/wp-content/plugins/tx-onepager/app/Assets/BuildModeScripts.php on line 100

but in other installation work fine in same server

Thanks

ricardowone commented 8 years ago

Hi

Only try if is possible do it!

I changed file BuildModeScripts.php line 100 to:

private function resetWpScriptQueue() { try{ wp_scripts()->queue = [ ]; wp_styles()->queue = [ ]; }catch(Expection $e){ } }

not work for me

so

I comment two lines and work for me!

// wp_scripts()->queue = [ ]; // wp_styles()->queue = [ ];

Maybe Help Users with Custom Themes

Thanks Great Job

Ricardo http://zumpsites.com Brasil

nadimtuhin commented 8 years ago

@ricardowone thanks dude :v we will be releasing 1.2.5 in 3 days with a patch for this.

ricardowone commented 8 years ago

Great

I think create new blocks and share here if possible!

Nice Job

Thanks Again Waiting your release ;)

Ricardo http://zumpsites.com Brasil