Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Problem with minify

Asked Modified Viewed 1,234 times
D
dialektika
D
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Junior Member

Don't sure that problem with the CMS rather server but maybe some one saw the same:
after opening error in errors admin page get new error
File: Minify.inc
Page: /administration/errors.php?aid=(--removed--)&rowstart=0&error_id=394
Line: 409
Error message: is_file(): open_basedir restriction in effect. File(new ClipboardJS(".copy-error");

 $('<br/>#delete_status').select2({
 placeholder: '...',
 minimumResultsForSearch: 5,
 allowClear:true,
 });
 $('a<br/>#footer_debug').bind('click', function(e) {
 e.preventDefault();
 });
 $('.change_status').hide();
 $('<br/>#top').click(function(){
 jQuery('html, body').animate({scrollTop:0}, 'slow');
 return false;
 });

(--removed middle--)
 $('ul<br/>#app_search_result').html(result).show();
 }
 });
 });
 )

is not within the allowed path(s): (--actual paths removed, but they are valid--)
Edited by N/A on 30-03-2019 17:09,
0 replies

3 posts

R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

Comment out line 409 in /includes/classes/PHPFusion/Minify/Minify.inc https://github.com/PHPFusion/PHPFusio...y.inc#L409

Is issue on server, not properly configured open_basedir. Some hosts say it's because of security on shared hosting.
0 replies
D
dialektika
D
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Junior Member

As I understand variable $path at line 409 get value that is not some actual file path but some js code. Is it right?
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

As RobiNNN suggested, the function shouldn't be used and must be skipped. If you uncomment L409, the function always will return FALSE or do not return anything. Therefore $data is always $data.

When $data == $data, and shall always remain as a compiled bunch of JS code, not some readable file, therefore skipping $this->load($data) (which also will suggest a lot of speed improvements by avoiding loading it), which could be avoided in our use case. We don't use it to parse any base64 code in any case. It's just to compress codes so view-source could be better organized and clean on first parse, and op_cache speed it up x100 times on subsequent load.

Hope that answers your question earlier. I'm merely responding to the nature of $data variable only. As to whether how to solve the Minify problem, see if @RobiNNN's answer do solve your issue.
Edited by Chan on 01-04-2019 14:12,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
D
D
  • Junior Member, joined since
  • Contributed 21 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet