- Posts: 3
- Thank you received: 0
Brand new installation, try to change anything in template style and get error
-
info2229
Active member - Topic Author
- New Member
Less
More
1 year 10 months ago #50157
by info2229
Brand new installation, try to change anything in template style and get error was created by info2229
Hi
I have just completed a new installation of Focus. When I try to edit anything in the style template, I get an error on saving
"0 Failed opening required '/home/MYSERVER/public_html/htdocs/~MYUSER/templates/sparky_framework/library/sparky_grid.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear')"
And then the front-end breaks (looks like the grid or stylesheet isn't being saved and it breaks the design).
Any advice as to what I am doing wrong would be appreciated. I have just recently installed the Cosmetics one and no issues with that website at all
I have just completed a new installation of Focus. When I try to edit anything in the style template, I get an error on saving
"0 Failed opening required '/home/MYSERVER/public_html/htdocs/~MYUSER/templates/sparky_framework/library/sparky_grid.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear')"
And then the front-end breaks (looks like the grid or stylesheet isn't being saved and it breaks the design).
Any advice as to what I am doing wrong would be appreciated. I have just recently installed the Cosmetics one and no issues with that website at all
Please Log in to join the conversation.
-
info2229
Active member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
1 year 10 months ago #50158
by info2229
Replied by info2229 on topic Brand new installation, try to change anything in template style and get error
For extra information. I have spoken to the hosting company and they said this:
"Given the lack of errors I'm seeing on this end everything is pointing to the template file you are working with; again. Since the only error from Apache is pointing to the headers of the index.php file there is most likely something wrong in the template or Joomla core files themselves that we are unable to spot readily on this end."
when I look at the error - my server name is missing a letter
the server should be /home/secure271/ but in the error below it is /home/secur271 ?
Failed opening required '/home/secur271/public_html/htdocs/USER/templates/sparky_framework/library/sparky_grid.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear')
"Given the lack of errors I'm seeing on this end everything is pointing to the template file you are working with; again. Since the only error from Apache is pointing to the headers of the index.php file there is most likely something wrong in the template or Joomla core files themselves that we are unable to spot readily on this end."
when I look at the error - my server name is missing a letter
the server should be /home/secure271/ but in the error below it is /home/secur271 ?
Failed opening required '/home/secur271/public_html/htdocs/USER/templates/sparky_framework/library/sparky_grid.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear')
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6766
- Thank you received: 719
1 year 10 months ago #50160
by milos
Replied by milos on topic Brand new installation, try to change anything in template style and get error
Hello,
Please try to re-upload the template files, maybe some files are missing or partially uploaded. Can you give me the URL of the website where the problem occurs? Is it a temporary URL (the ones that cPanel provides) or a real domain name? Also, which PHP version do you have on this server?
Regards,
Milos
Please try to re-upload the template files, maybe some files are missing or partially uploaded. Can you give me the URL of the website where the problem occurs? Is it a temporary URL (the ones that cPanel provides) or a real domain name? Also, which PHP version do you have on this server?
Regards,
Milos
Please Log in to join the conversation.
-
info2229
Active member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
1 year 10 months ago #50162
by info2229
Replied by info2229 on topic Brand new installation, try to change anything in template style and get error
Hi Milos
I tried 5 different themes, including one I just successfully installed on the weekend on a different cpanel.
Yesterday, I was comparing the site that works with the site that doesn't and the ONLY difference between the two is that one has an assigned domain, and the other is using the cPanel temporary URL. From your question above, you seem to have had the same thought. So yesterday I associated the new domain with the new cPanel and this morning it had synced up. Just now, I tried to edit the site template and then resave it and it WORKED!
The site is now functioning normally. So, in your templates, you have an issue when using the temporary domain - in the code it is cutting off part of the server name?
"when I look at the error - my server name is missing a letter
the server should be /home/secure271/ but in the error below it is /home/secur271 ?
Failed opening required '/home/secur271/public_html/htdocs/USER/templates/sparky_framework/library/sparky_grid.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear')"
In the meantime, I can work on the site so I am happy, but I do have a lot of pre-production sites where I would be working on the template BEFORE I assign a domain (client is unsure of the domain, they haven't given me access to the DNS nameservers yet, etc). Please take a look and see if you can fix the error so it isn't an issue going forward.
Thanks in advance.
I tried 5 different themes, including one I just successfully installed on the weekend on a different cpanel.
Yesterday, I was comparing the site that works with the site that doesn't and the ONLY difference between the two is that one has an assigned domain, and the other is using the cPanel temporary URL. From your question above, you seem to have had the same thought. So yesterday I associated the new domain with the new cPanel and this morning it had synced up. Just now, I tried to edit the site template and then resave it and it WORKED!
The site is now functioning normally. So, in your templates, you have an issue when using the temporary domain - in the code it is cutting off part of the server name?
"when I look at the error - my server name is missing a letter
the server should be /home/secure271/ but in the error below it is /home/secur271 ?
Failed opening required '/home/secur271/public_html/htdocs/USER/templates/sparky_framework/library/sparky_grid.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear')"
In the meantime, I can work on the site so I am happy, but I do have a lot of pre-production sites where I would be working on the template BEFORE I assign a domain (client is unsure of the domain, they haven't given me access to the DNS nameservers yet, etc). Please take a look and see if you can fix the error so it isn't an issue going forward.
Thanks in advance.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6766
- Thank you received: 719
1 year 10 months ago #50163
by milos
Replied by milos on topic Brand new installation, try to change anything in template style and get error
Hello,
Our framework uses exact server paths when it creates CSS and JS files dynamically (when you save the template options). Unfortunately, the server paths are not available on temporary URLs provided by cPanel. We can't do anything about that.
I understand that some clients are unsure which domain they will register. However, you can use a temporary subdomain of any of your domains and work on it temporarily. For example:
In this case, the framework will work correctly and it's the recommended way.
Regards,
Milos
Our framework uses exact server paths when it creates CSS and JS files dynamically (when you save the template options). Unfortunately, the server paths are not available on temporary URLs provided by cPanel. We can't do anything about that.
I understand that some clients are unsure which domain they will register. However, you can use a temporary subdomain of any of your domains and work on it temporarily. For example:
Code:
client1.yourwebsite.com
In this case, the framework will work correctly and it's the recommended way.
Regards,
Milos
Please Log in to join the conversation.
Time to create page: 0.157 seconds