Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“New Blog Templates” plugin by WPMU DEV in multisite it is not working #2

Open
enmassellc opened this issue Jan 2, 2020 · 4 comments

Comments

@enmassellc
Copy link

I created a multisite WordPress site mywebsite.com, I added new site(website) using subdomains simplepack.mywebsite.com.
I am trying to create a template using the site simplepack.mywebsite.com and the “New Blog Templates” plugin by WPMU DEV.
The template1.mywebsite.com will be a copy of simplepack.mywebsite.com.
My hosting is with Godaddy and it is a VPS Server.
I created the template but I am getting the message “You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.“
“Not Found The requested URL was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”
In the uploads/sites I see that there is created a file with the site ID number but the directory is empty.
In the main directory I have “wildcard” and in the DNS Management I have A * 00.00.00.00(the value ).
I do not know why the template plugin do not copy the simplepack.mywebsite.com tables in to the template directory and why the wildcard is not working.
I asked assistants from Godaddy on the wildcard setting and they said that it is set properly.
I spent weeks trying to find the solution, please help! Thank you!!!!!
Website: https://emmsites.com/

@enmassellc
Copy link
Author

I resolved the 403 Forbidden error changing the *.mysites.com subdomain to direct to "/public_html "
but the plugin is still not copying(cloning) the simplepack.mywebsite.com tables in to the template files directory . I would really appreciate some help.

@enmassellc
Copy link
Author

enmassellc commented Jan 3, 2020

In the "error_log" I found the errors;
[03-Jan-2020 05:35:15 UTC] PHP Warning: include_once(/home/mysites/public_html/wp-content/plugins/blogtemplates-master/blogtemplatesfiles/externals/wpmudev-dash-notification.php): failed to open stream: No such file or directory in /home/mysites/public_html/wp-content/plugins/blogtemplates-master/blogtemplates.php on line 58
[03-Jan-2020 05:35:15 UTC] PHP Warning: include_once(): Failed opening '/home/mysites/public_html/wp-content/plugins/blogtemplates-master/blogtemplatesfiles/externals/wpmudev-dash-notification.php' for inclusion (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/mysites/public_html/wp-content/plugins/blogtemplates-master/blogtemplates.php on line 58
[03-Jan-2020 05:35:15 UTC] PHP Warning: include_once(/home/mysites/public_html/wp-content/plugins/default-theme-master/external/dash-notice/wpmudev-dash-notification.php): failed to open stream: No such file or directory in /home/mysites/public_html/wp-content/plugins/default-theme-master/default-theme.php on line 113
[03-Jan-2020 05:35:15 UTC] PHP Warning: include_once(): Failed opening '/home/mysites/public_html/wp-content/plugins/default-theme-master/external/dash-notice/wpmudev-dash-notification.php' for inclusion (include_path='.:/opt/cpanel/ea-php71/root/usr/share/pear') in /home/mysites/public_html/wp-content/plugins/default-theme-master/default-theme.php on line 113

panoslyrakis added a commit that referenced this issue Jan 6, 2020
Issue described here : 
#2
@panoslyrakis
Copy link
Contributor

panoslyrakis commented Jan 6, 2020

Hi @enmassellc ,

This is because the plugin needs to run the grunt build task first. In order to better handle this though I just made a minor change that should fix this issue for you as it is. You can try one of the following:

  1. Run the grunt task (it might be a bit complicated if you are not familiar) or
  2. Re-download and replace the entire plugin or
  3. Just change file blogtemplates/blogtemplates.php in line 58 similar to how it's done here :
    2ec05c5

I find the 3rd one the easiest one :)

@enmassellc
Copy link
Author

Hi, Thank you for your tips. After long days and nights I found that I have to create the new sites in same database with the multisite site. I had them in the same hosting but different databases. This tip could save me a lot of time. About the wildcard domain, first I trusted the Godaddy agents to fix it but they were wrong. With everything been in the same database the wildcard had to be set to direct to public_html. For now everything is working so I am very happy. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants